Enum aws_smithy_types::primitive::Encoder[][src]

#[non_exhaustive]
pub enum Encoder {
    Bool(bool),
    I8(i8Buffer),
    I16(i16Buffer),
    I32(i32Buffer),
    I64(i64Buffer),
    U64(u64Buffer),
    F32(f32Buffer),
    F64(f64Buffer),
}
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
I8(i8Buffer)

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.

Tuple Fields of I8

0: i81: Buffer
I16(i16Buffer)

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.

Tuple Fields of I16

0: i161: Buffer
I32(i32Buffer)

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.

Tuple Fields of I32

0: i321: Buffer
I64(i64Buffer)

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.

Tuple Fields of I64

0: i641: Buffer
U64(u64Buffer)

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.

Tuple Fields of U64

0: u641: Buffer
F32(f32Buffer)

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.

Tuple Fields of F32

0: f321: Buffer
F64(f64Buffer)

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.

Tuple Fields of F64

0: f641: Buffer

Implementations

Encodes a Smithy primitive as a string.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.