MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / clone

Method clone

lambda-events/src/encodings/http.rs:168–174  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

166
167impl Clone for Body {
168 fn clone(&self) -> Self {
169 match self {
170 Body::Empty => Body::Empty,
171 Body::Text(ref bytes) => Body::Text(bytes.clone()),
172 Body::Binary(ref bytes) => Body::Binary(bytes.clone()),
173 }
174 }
175}
176
177impl Serialize for Body {

Callers 15

registerMethod · 0.45
registerFunction · 0.45
test_null_attributeFunction · 0.45
test_string_attributeFunction · 0.45
test_number_attributeFunction · 0.45
test_binary_attributeFunction · 0.45
test_boolean_attributeFunction · 0.45
test_deserialize_exampleFunction · 0.45

Calls

no outgoing calls

Tested by 12

test_null_attributeFunction · 0.36
test_string_attributeFunction · 0.36
test_number_attributeFunction · 0.36
test_binary_attributeFunction · 0.36
test_boolean_attributeFunction · 0.36
test_deserialize_exampleFunction · 0.36