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)

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(i8Buffer)

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(i16Buffer)

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(i32Buffer)

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(i64Buffer)

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(u64Buffer)

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(f32Buffer)

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(f64Buffer)

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

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.