Enum aws_smithy_types::primitive::Encoder [−][src]
#[non_exhaustive]
pub enum Encoder {
Bool(bool),
I8(i8, Buffer),
I16(i16, Buffer),
I32(i32, Buffer),
I64(i64, Buffer),
U64(u64, Buffer),
F32(f32, Buffer),
F64(f64, Buffer),
}
Expand description
Primitive Type Encoder
Encodes primitive types in Smithy’s specified format. For floating-point numbers, Smithy requires that NaN and Infinity values be specially encoded.
This type implements From<T>
for all Smithy primitive types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(bool)
Boolean
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Tuple Fields of Bool
0: bool
8-bit signed integer
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
16-bit signed integer
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
32-bit signed integer
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
64-bit signed integer
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
64-bit unsigned integer
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
32-bit IEEE 754 single-precision floating-point number
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
64-bit IEEE 754 double-precision floating-point number
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.