[][src]Enum avro_rs::SerError

pub enum SerError {
    SnappyCrc32 {
        expected: u32,
        actual: u32,
    },
    BoolValue(u8),
    FixedValue(ValueKind),
    BytesValue(ValueKind),
    GetUuidFromStringValue(ValueKind),
    ResolveDecimalSchema(SchemaKind),
    ConvertToUtf8(FromUtf8Error),
    Validation,
    MemoryAllocation {
        desired: usize,
        maximum: usize,
    },
    SignExtend {
        requested: usize,
        needed: usize,
    },
    ReadBoolean(Error),
    ReadBytes(Error),
    ReadString(Error),
    ReadDouble(Error),
    ReadFloat(Error),
    ReadDuration(Error),
    ReadFixed(Errorusize),
    ConvertStrToUuid(Error),
    MapKeyType(ValueKind),
    GetUnionVariant {
        index: i64,
        num_variants: usize,
    },
    EnumSymbolIndex {
        index: usize,
        num_variants: usize,
    },
    GetEnumSymbol,
    GetScaleAndPrecision {
        scale: usize,
        precision: usize,
    },
    GetScaleWithFixedSize {
        size: usize,
        precision: usize,
    },
    GetUuid(ValueKind),
    GetDecimalFixedBytes(usize),
    ResolveDuration(ValueKind),
    ResolveDecimal(ValueKind),
    GetField(String),
    GetU8(ValueKind),
    ComparePrecisionAndSize {
        precision: usize,
        num_bytes: usize,
    },
    ConvertLengthToI32(TryFromIntErrorusize),
    GetDate(ValueKind),
    GetTimeMillis(ValueKind),
    GetTimeMicros(ValueKind),
    GetTimestampMillis(ValueKind),
    GetTimestampMicros(ValueKind),
    GetNull(ValueKind),
    GetBoolean(ValueKind),
    GetInt(ValueKind),
    GetLong(ValueKind),
    GetDouble(ValueKind),
    GetFloat(ValueKind),
    GetBytes(ValueKind),
    GetString(ValueKind),
    GetEnum(ValueKind),
    CompareFixedSizes {
        size: usize,
        n: usize,
    },
    GetStringForFixed(ValueKind),
    GetEnumDefault {
        symbol: String,
        symbols: Vec<String>,
    },
    GetEnumValue {
        index: usize,
        nsymbols: usize,
    },
    GetDecimalMetadataFromJson(&'static str),
    FindUnionVariant,
    GetArray {
        expected: SchemaKind,
        other: ValueKind,
    },
    GetMap {
        expected: SchemaKind,
        other: ValueKind,
    },
    GetRecord {
        expected: Vec<(String, SchemaKind)>,
        other: ValueKind,
    },
    GetNameField,
    GetNameFieldFromRecord,
    GetNestedUnion,
    GetUnionDuplicate,
    GetU64FromJson(Number),
    GetI64FromJson(Number),
    ConvertU64ToUsize(TryFromIntErroru64),
    ConvertI64ToUsize(TryFromIntErrori64),
    ConvertI32ToUsize(TryFromIntErrori32),
    GetPrecisionOrScaleFromJson(Number),
    ParseSchemaJson(Error),
    ParseSchemaFromValidJson,
    ParsePrimitive(String),
    GetDecimalPrecisionFromJson {
        key: String,
        precision: Value,
    },
    GetLogicalTypeVariant(Value),
    GetLogicalTypeField,
    GetLogicalTypeFieldType,
    GetComplexType(Value),
    GetComplexTypeField,
    GetRecordFieldsJson,
    GetEnumSymbolsField,
    GetEnumSymbols,
    GetArrayItemsField,
    GetMapValuesField,
    GetFixedSizeField,
    DeflateCompress(Error),
    DeflateCompressFinish(Error),
    DeflateDecompress(Error),
    ReadHeader(Error),
    HeaderMagic,
    GetAvroSchemaFromMap,
    GetHeaderMetadata,
    ReadMarker(Error),
    ReadBlockMarker(Error),
    ReadIntoBuf(Error),
    GetBlockMarker,
    IntegerOverflow,
    ReadVariableIntegerBytes(Error),
    ZagI32(TryFromIntErrori64),
    ReadBlock,
    SerializeValue(String),
    DeserializeValue(String),
    WriteBytes(Error),
    WriteMarker(Error),
    ConvertJsonToString(Error),
    ConvertF64ToJson(f64),
}

Variants

SnappyCrc32

Fields of SnappyCrc32

expected: u32actual: u32
BoolValue(u8)
FixedValue(ValueKind)
BytesValue(ValueKind)
GetUuidFromStringValue(ValueKind)
ResolveDecimalSchema(SchemaKind)
ConvertToUtf8(FromUtf8Error)
Validation

Describes errors happened while validating Avro data.

MemoryAllocation

Fields of MemoryAllocation

desired: usizemaximum: usize
SignExtend

Describe a specific error happening with decimal representation

Fields of SignExtend

requested: usizeneeded: usize
ReadBoolean(Error)
ReadBytes(Error)
ReadString(Error)
ReadDouble(Error)
ReadFloat(Error)
ReadDuration(Error)
ReadFixed(Errorusize)
ConvertStrToUuid(Error)
MapKeyType(ValueKind)
GetUnionVariant

Fields of GetUnionVariant

index: i64num_variants: usize
EnumSymbolIndex

Fields of EnumSymbolIndex

index: usizenum_variants: usize
GetEnumSymbol
GetScaleAndPrecision

Fields of GetScaleAndPrecision

scale: usizeprecision: usize
GetScaleWithFixedSize

Fields of GetScaleWithFixedSize

size: usizeprecision: usize
GetUuid(ValueKind)
GetDecimalFixedBytes(usize)
ResolveDuration(ValueKind)
ResolveDecimal(ValueKind)
GetField(String)
GetU8(ValueKind)
ComparePrecisionAndSize

Fields of ComparePrecisionAndSize

precision: usizenum_bytes: usize
ConvertLengthToI32(TryFromIntErrorusize)
GetDate(ValueKind)
GetTimeMillis(ValueKind)
GetTimeMicros(ValueKind)
GetTimestampMillis(ValueKind)
GetTimestampMicros(ValueKind)
GetNull(ValueKind)
GetBoolean(ValueKind)
GetInt(ValueKind)
GetLong(ValueKind)
GetDouble(ValueKind)
GetFloat(ValueKind)
GetBytes(ValueKind)
GetString(ValueKind)
GetEnum(ValueKind)
CompareFixedSizes

Fields of CompareFixedSizes

size: usizen: usize
GetStringForFixed(ValueKind)
GetEnumDefault

Fields of GetEnumDefault

symbol: Stringsymbols: Vec<String>
GetEnumValue

Fields of GetEnumValue

index: usizensymbols: usize
GetDecimalMetadataFromJson(&'static str)
FindUnionVariant
GetArray

Fields of GetArray

expected: SchemaKindother: ValueKind
GetMap

Fields of GetMap

expected: SchemaKindother: ValueKind
GetRecord

Fields of GetRecord

expected: Vec<(String, SchemaKind)>other: ValueKind
GetNameField
GetNameFieldFromRecord
GetNestedUnion
GetUnionDuplicate
GetU64FromJson(Number)
GetI64FromJson(Number)
ConvertU64ToUsize(TryFromIntErroru64)
ConvertI64ToUsize(TryFromIntErrori64)
ConvertI32ToUsize(TryFromIntErrori32)
GetPrecisionOrScaleFromJson(Number)
ParseSchemaJson(Error)
ParseSchemaFromValidJson
ParsePrimitive(String)
GetDecimalPrecisionFromJson

Fields of GetDecimalPrecisionFromJson

key: Stringprecision: Value
GetLogicalTypeVariant(Value)
GetLogicalTypeField
GetLogicalTypeFieldType
GetComplexType(Value)
GetComplexTypeField
GetRecordFieldsJson
GetEnumSymbolsField
GetEnumSymbols
GetArrayItemsField
GetMapValuesField
GetFixedSizeField
DeflateCompress(Error)
DeflateCompressFinish(Error)
DeflateDecompress(Error)
ReadHeader(Error)
HeaderMagic
GetAvroSchemaFromMap
GetHeaderMetadata
ReadMarker(Error)
ReadBlockMarker(Error)
ReadIntoBuf(Error)
GetBlockMarker
IntegerOverflow
ReadVariableIntegerBytes(Error)
ReadBlock
SerializeValue(String)
DeserializeValue(String)
WriteBytes(Error)
WriteMarker(Error)
ConvertJsonToString(Error)
ConvertF64ToJson(f64)

Error while converting float to json value

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,