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)
Tuple Fields
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.
0: bool
Boolean
I8(i8, Buffer)
Tuple Fields
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.
0: i8
1: Buffer
8-bit signed integer
I16(i16, Buffer)
Tuple Fields
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.
0: i16
1: Buffer
16-bit signed integer
I32(i32, Buffer)
Tuple Fields
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.
0: i32
1: Buffer
32-bit signed integer
I64(i64, Buffer)
Tuple Fields
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.
0: i64
1: Buffer
64-bit signed integer
U64(u64, Buffer)
Tuple Fields
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.
0: u64
1: Buffer
64-bit unsigned integer
F32(f32, Buffer)
Tuple Fields
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.
0: f32
1: Buffer
32-bit IEEE 754 single-precision floating-point number
F64(f64, Buffer)
Tuple Fields
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.
0: f64
1: Buffer
64-bit IEEE 754 double-precision floating-point number