Details

Enum Details 

Source
pub enum Details {
Show 152 variants SnappyCrc32 { expected: u32, actual: u32, }, BoolValue(u8), FixedValue(Value), BytesValue(Value), GetUuidFromStringValue(Value), NameCollision(String), ResolveDecimalSchema(SchemaKind), ConvertToUtf8(FromUtf8Error), ConvertToUtf8Error(Utf8Error), Validation, ValidationWithReason { value: Value, schema: Schema, reason: String, }, MemoryAllocation { desired: usize, maximum: usize, }, SignExtend { requested: usize, needed: usize, }, ReadBoolean(Error), ReadBytes(Error), ReadString(Error), ReadDouble(Error), ReadFloat(Error), ReadDuration(Error), ReadFixed(Error, usize), ConvertStrToUuid(Error), ConvertFixedToUuid(usize), ConvertSliceToUuid(Error), MapKeyType(ValueKind), GetUnionVariant { index: i64, num_variants: usize, }, EnumSymbolIndex { index: usize, num_variants: usize, }, GetEnumSymbol(String), GetEnumUnknownIndexValue, GetScaleAndPrecision { scale: usize, precision: usize, }, GetScaleWithFixedSize { size: usize, precision: usize, }, GetUuid(Value), GetBigDecimal(Value), GetDecimalFixedBytes(usize), ResolveDuration(Value), ResolveDecimal(Value), GetField(String), GetU8(Value), ComparePrecisionAndSize { precision: usize, num_bytes: usize, }, ConvertLengthToI32(TryFromIntError, usize), GetDate(Value), GetTimeMillis(Value), GetTimeMicros(Value), GetTimestampMillis(Value), GetTimestampMicros(Value), GetTimestampNanos(Value), GetLocalTimestampMillis(Value), GetLocalTimestampMicros(Value), GetLocalTimestampNanos(Value), GetNull(Value), GetBoolean(Value), GetInt(Value), GetLong(Value), GetDouble(Value), GetFloat(Value), GetBytes(Value), GetString(Value), GetEnum(Value), CompareFixedSizes { size: usize, n: usize, }, GetStringForFixed(Value), GetEnumDefault { symbol: String, symbols: Vec<String>, }, GetEnumValue { index: usize, nsymbols: usize, }, GetDecimalMetadataFromJson(&'static str), FindUnionVariant { schema: UnionSchema, value: Value, }, EmptyUnion, GetArray { expected: SchemaKind, other: Value, }, GetMap { expected: SchemaKind, other: Value, }, GetRecord { expected: Vec<(String, SchemaKind)>, other: Value, }, GetNameField, GetNameFieldFromRecord, GetNestedUnion, GetUnionDuplicate, GetDefaultUnion(SchemaKind, ValueKind), GetDefaultRecordField(String, String, String), GetU64FromJson(Number), GetI64FromJson(Number), ConvertU64ToUsize(TryFromIntError, u64), ConvertU32ToUsize(TryFromIntError, u32), ConvertI64ToUsize(TryFromIntError, i64), ConvertI32ToUsize(TryFromIntError, i32), GetPrecisionOrScaleFromJson(Number), ParseSchemaJson(Error), ReadSchemaFromReader(Error), ParseSchemaFromValidJson, ParsePrimitive(String), GetDecimalMetadataValueFromJson { key: String, value: Value, }, DecimalPrecisionLessThanScale { precision: usize, scale: usize, }, DecimalPrecisionMuBePositive { precision: usize, }, BigDecimalSign, BigDecimalLen(Box<Error>), BigDecimalScale, GetLogicalTypeVariant(Value), GetLogicalTypeField, GetLogicalTypeFieldType(Value), GetComplexType(Value), GetComplexTypeField, GetRecordFieldsJson, GetEnumSymbolsField, GetEnumSymbols, EnumSymbolName(String), FieldName(String), FieldNameDuplicate(String), InvalidSchemaName(String, &'static str), InvalidNamespace(String, &'static str), InvalidSchemaRecord(String), EnumSymbolDuplicate(String), EnumDefaultWrongType(Value), GetArrayItemsField, GetMapValuesField, GetFixedSizeFieldPositive(Value), GetFixedSizeField, FixedDefaultLenSizeMismatch(usize, u64), DeflateCompress(Error), DeflateCompressFinish(Error), DeflateDecompress(Error), SnappyCompress(Error), GetSnappyDecompressLen(Error), SnappyDecompress(Error), ZstdCompress(Error), ZstdDecompress(Error), ReadHeader(Error), HeaderMagic, SingleObjectHeaderMismatch(Vec<u8>, Vec<u8>), GetAvroSchemaFromMap, GetHeaderMetadata, ReadMarker(Error), ReadBlockMarker(Error), ReadIntoBuf(Error), GetBlockMarker, IntegerOverflow, ReadVariableIntegerBytes(Error), ZagI32(TryFromIntError, i64), ReadBlock, SerializeValue(String), SerializeValueWithSchema { value_type: &'static str, value: String, schema: Schema, }, SerializeRecordFieldWithSchema { field_name: &'static str, record_schema: Schema, error: Box<Error>, }, DeserializeValue(String), WriteBytes(Error), FlushWriter(Error), WriteMarker(Error), ConvertJsonToString(Error), ConvertF64ToJson(f64), SchemaResolutionError(Name), FileHeaderAlreadyWritten, InvalidMetadataKey(String), AmbiguousSchemaDefinition(Name), EncodeDecimalAsFixedError(usize, usize), NoEntryInLookupTable(String, String), EncodeValueAsSchemaError { value_kind: ValueKind, supported_schema: Vec<SchemaKind>, }, IllegalSingleObjectWriterState, CodecNotSupported(String), BadCodecMetadata, UuidFromSlice(Error),
}

Variantsยง

ยง

SnappyCrc32

Fields

ยงexpected: u32
ยงactual: u32
ยง

BoolValue(u8)

ยง

FixedValue(Value)

ยง

BytesValue(Value)

ยง

GetUuidFromStringValue(Value)

ยง

NameCollision(String)

ยง

ResolveDecimalSchema(SchemaKind)

ยง

ConvertToUtf8(FromUtf8Error)

ยง

ConvertToUtf8Error(Utf8Error)

ยง

Validation

Describes errors happened while validating Avro data.

ยง

ValidationWithReason

Describes errors happened while validating Avro data.

Fields

ยงschema: Schema
ยงreason: String
ยง

MemoryAllocation

Fields

ยงdesired: usize
ยงmaximum: usize
ยง

SignExtend

Describe a specific error happening with decimal representation

Fields

ยงrequested: usize
ยงneeded: usize
ยง

ReadBoolean(Error)

ยง

ReadBytes(Error)

ยง

ReadString(Error)

ยง

ReadDouble(Error)

ยง

ReadFloat(Error)

ยง

ReadDuration(Error)

ยง

ReadFixed(Error, usize)

ยง

ConvertStrToUuid(Error)

ยง

ConvertFixedToUuid(usize)

ยง

ConvertSliceToUuid(Error)

ยง

MapKeyType(ValueKind)

ยง

GetUnionVariant

Fields

ยงindex: i64
ยงnum_variants: usize
ยง

EnumSymbolIndex

๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore

Fields

ยงindex: usize
๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยงnum_variants: usize
๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยง

GetEnumSymbol(String)

ยง

GetEnumUnknownIndexValue

ยง

GetScaleAndPrecision

Fields

ยงprecision: usize
ยง

GetScaleWithFixedSize

Fields

ยงprecision: usize
ยง

GetUuid(Value)

ยง

GetBigDecimal(Value)

ยง

GetDecimalFixedBytes(usize)

ยง

ResolveDuration(Value)

ยง

ResolveDecimal(Value)

ยง

GetField(String)

ยง

GetU8(Value)

ยง

ComparePrecisionAndSize

Fields

ยงprecision: usize
ยงnum_bytes: usize
ยง

ConvertLengthToI32(TryFromIntError, usize)

ยง

GetDate(Value)

ยง

GetTimeMillis(Value)

ยง

GetTimeMicros(Value)

ยง

GetTimestampMillis(Value)

ยง

GetTimestampMicros(Value)

ยง

GetTimestampNanos(Value)

ยง

GetLocalTimestampMillis(Value)

ยง

GetLocalTimestampMicros(Value)

ยง

GetLocalTimestampNanos(Value)

ยง

GetNull(Value)

ยง

GetBoolean(Value)

ยง

GetInt(Value)

ยง

GetLong(Value)

ยง

GetDouble(Value)

ยง

GetFloat(Value)

ยง

GetBytes(Value)

ยง

GetString(Value)

ยง

GetEnum(Value)

ยง

CompareFixedSizes

Fields

ยง

GetStringForFixed(Value)

ยง

GetEnumDefault

Fields

ยงsymbol: String
ยงsymbols: Vec<String>
ยง

GetEnumValue

Fields

ยงnsymbols: usize
ยง

GetDecimalMetadataFromJson(&'static str)

ยง

FindUnionVariant

Fields

ยง

EmptyUnion

ยง

GetArray

Fields

ยง

GetMap

Fields

ยง

GetRecord

Fields

ยง

GetNameField

ยง

GetNameFieldFromRecord

ยง

GetNestedUnion

ยง

GetUnionDuplicate

ยง

GetDefaultUnion(SchemaKind, ValueKind)

ยง

GetDefaultRecordField(String, String, String)

ยง

GetU64FromJson(Number)

ยง

GetI64FromJson(Number)

ยง

ConvertU64ToUsize(TryFromIntError, u64)

ยง

ConvertU32ToUsize(TryFromIntError, u32)

๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยง

ConvertI64ToUsize(TryFromIntError, i64)

ยง

ConvertI32ToUsize(TryFromIntError, i32)

ยง

GetPrecisionOrScaleFromJson(Number)

ยง

ParseSchemaJson(Error)

ยง

ReadSchemaFromReader(Error)

ยง

ParseSchemaFromValidJson

ยง

ParsePrimitive(String)

ยง

GetDecimalMetadataValueFromJson

Fields

ยง

DecimalPrecisionLessThanScale

Fields

ยงprecision: usize
ยง

DecimalPrecisionMuBePositive

Fields

ยงprecision: usize
ยง

BigDecimalSign

๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยง

BigDecimalLen(Box<Error>)

ยง

BigDecimalScale

ยง

GetLogicalTypeVariant(Value)

๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยง

GetLogicalTypeField

ยง

GetLogicalTypeFieldType(Value)

ยง

GetComplexType(Value)

ยง

GetComplexTypeField

ยง

GetRecordFieldsJson

ยง

GetEnumSymbolsField

ยง

GetEnumSymbols

ยง

EnumSymbolName(String)

ยง

FieldName(String)

ยง

FieldNameDuplicate(String)

ยง

InvalidSchemaName(String, &'static str)

ยง

InvalidNamespace(String, &'static str)

ยง

InvalidSchemaRecord(String)

ยง

EnumSymbolDuplicate(String)

ยง

EnumDefaultWrongType(Value)

ยง

GetArrayItemsField

ยง

GetMapValuesField

ยง

GetFixedSizeFieldPositive(Value)

ยง

GetFixedSizeField

ยง

FixedDefaultLenSizeMismatch(usize, u64)

ยง

DeflateCompress(Error)

๐Ÿ‘ŽDeprecated since 0.20.0: This error variant is not generated anymore
ยง

DeflateCompressFinish(Error)

๐Ÿ‘ŽDeprecated since 0.19.0: This error can no longer occur
ยง

DeflateDecompress(Error)

ยง

SnappyCompress(Error)

ยง

GetSnappyDecompressLen(Error)

ยง

SnappyDecompress(Error)

ยง

ZstdCompress(Error)

ยง

ZstdDecompress(Error)

ยง

ReadHeader(Error)

ยง

HeaderMagic

ยง

SingleObjectHeaderMismatch(Vec<u8>, Vec<u8>)

ยง

GetAvroSchemaFromMap

ยง

GetHeaderMetadata

ยง

ReadMarker(Error)

ยง

ReadBlockMarker(Error)

ยง

ReadIntoBuf(Error)

ยง

GetBlockMarker

ยง

IntegerOverflow

ยง

ReadVariableIntegerBytes(Error)

ยง

ZagI32(TryFromIntError, i64)

ยง

ReadBlock

ยง

SerializeValue(String)

ยง

SerializeValueWithSchema

Fields

ยงvalue_type: &'static str
ยงschema: Schema
ยง

SerializeRecordFieldWithSchema

Fields

ยงfield_name: &'static str
ยงrecord_schema: Schema
ยง

DeserializeValue(String)

ยง

WriteBytes(Error)

ยง

FlushWriter(Error)

ยง

WriteMarker(Error)

ยง

ConvertJsonToString(Error)

ยง

ConvertF64ToJson(f64)

Error while converting float to json value

ยง

SchemaResolutionError(Name)

Error while resolving Schema::Ref

ยง

FileHeaderAlreadyWritten

ยง

InvalidMetadataKey(String)

ยง

AmbiguousSchemaDefinition(Name)

Error when two named schema have the same fully qualified name

ยง

EncodeDecimalAsFixedError(usize, usize)

ยง

NoEntryInLookupTable(String, String)

ยง

EncodeValueAsSchemaError

Fields

ยงvalue_kind: ValueKind
ยงsupported_schema: Vec<SchemaKind>
ยง

IllegalSingleObjectWriterState

ยง

CodecNotSupported(String)

ยง

BadCodecMetadata

ยง

UuidFromSlice(Error)

Trait Implementationsยง

Sourceยง

impl Debug for Details

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Display for Details

Sourceยง

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Error for Details

Sourceยง

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 ยท Sourceยง

fn description(&self) -> &str

๐Ÿ‘ŽDeprecated since 1.42.0: use the Display impl or to_string()
1.0.0 ยท Sourceยง

fn cause(&self) -> Option<&dyn Error>

๐Ÿ‘ŽDeprecated since 1.33.0: replaced by Error::source, which can support downcasting
Sourceยง

fn provide<'a>(&'a self, request: &mut Request<'a>)

๐Ÿ”ฌThis is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Sourceยง

impl Error for Details

Sourceยง

fn custom<T: Display>(msg: T) -> Self

Used when a Serialize implementation encounters any error while serializing a type. Read more
Sourceยง

impl Error for Details

Sourceยง

fn custom<T: Display>(msg: T) -> Self

Raised when there is general error when deserializing a type. Read more
Sourceยง

fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a type different from what it was expecting. Read more
Sourceยง

fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more
Sourceยง

fn invalid_length(len: usize, exp: &dyn Expected) -> Self

Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more
Sourceยง

fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self

Raised when a Deserialize enum type received a variant with an unrecognized name.
Sourceยง

fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self

Raised when a Deserialize struct type received a field with an unrecognized name.
Sourceยง

fn missing_field(field: &'static str) -> Self

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input.
Sourceยง

fn duplicate_field(field: &'static str) -> Self

Raised when a Deserialize struct type received more than one of the same field.
Sourceยง

impl From<Details> for Error

Sourceยง

fn from(details: Details) -> Self

Converts to this type from the input type.

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T> ToString for T
where T: Display + ?Sized,

Sourceยง

fn to_string(&self) -> String

Converts the given value to a String. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

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

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

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

Sourceยง

fn vzip(self) -> V