Skip to main content

Details

Enum Details 

Source
pub enum Details {
Show 178 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: Option<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), GetDurationFixedBytes(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, GetUnionDuplicateMap(Schema, Schema), GetUnionDuplicateArray(Schema, Schema), GetUnionDuplicate(SchemaKind), GetUnionDuplicateNamedSchemas(String), GetDefaultUnion(SchemaKind, ValueKind), GetDefaultRecordField(String, String, String, Value), JsonNumberTooLarge(Number), GetU64FromJson(Number), GetI64FromJson(Number), ConvertU64ToUsize(TryFromIntError, u64), ConvertU32ToUsize(TryFromIntError, u32), ConvertI64ToUsize(TryFromIntError, i64), ConvertI32ToUsize(TryFromIntError, i32), ConvertI64ToU64(TryFromIntError, i64), ConvertI32ToU64(TryFromIntError, i32), ConvertI64ToU128(TryFromIntError, i64), ConvertI32ToU128(TryFromIntError, i32), ConvertUsizeToI64(TryFromIntError, usize), GetPrecisionOrScaleFromJson(Number), ParseSchemaJson(Error), ReadSchemaFromReader(Error), ParseSchemaFromValidJson, ParsePrimitive(String), ParsePrimitiveSimilar(String, &'static str), 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, GetRecordFieldTypeField, GetRecordFieldsJson, GetEnumSymbolsField, GetEnumSymbols, EnumSymbolName(String), FieldName(String), FieldNameDuplicate(String), InvalidSchemaName(String, &'static str), InvalidNamespace(String, &'static str), InvalidSchemaRecord(String), EnumSymbolDuplicate(String), EnumDefaultWrongType(Value), ArrayDefaultWrongType(Value), ArrayDefaultWrongInnerType(Schema, Value), MapDefaultWrongType(Value), MapDefaultWrongInnerType(Schema, Value), GetArrayItemsField, GetMapValuesField, GetFixedSizeFieldPositive(Value), GetFixedSizeField, FixedDefaultLenSizeMismatch(usize, u64), DeflateCompress(Error), DeflateCompressFinish(Error), DeflateDecompress(Error), SnappyCompress(Error), GetSnappyDecompressLen(Error), BadSnappyLength(usize), SnappyDecompress(Error), ZstdCompress(Error), ZstdDecompress(Error), Bzip2Decompress(Error), XzDecompress(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, }, SerializeRecordUnknownFieldIndex { position: usize, schema: RecordSchema, }, SerializeRecordFieldWithSchema { field_name: String, record_schema: RecordSchema, error: String, }, MissingDefaultForSkippedField { field_name: String, schema: RecordSchema, }, DeserializeValue(String), DeserializeSchemaAware { value_type: &'static str, value: String, schema: Schema, }, DeserializeIdentifier(&'static str), 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), MapFieldExpectedString, MapNoKey, InvalidSchemaNameValidatorImplementation, SerializeTupleMissingElements { position: usize, total_elements: usize, },
}

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

§value: Value
§schema: Schema
§reason: String
§

MemoryAllocation

Fields

§desired: Option<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

Fields

§index: usize
§num_variants: usize
§

GetEnumSymbol(String)

§

GetEnumUnknownIndexValue

§

GetScaleAndPrecision

Fields

§scale: usize
§precision: usize
§

GetScaleWithFixedSize

Fields

§size: usize
§precision: usize
§

GetUuid(Value)

§

GetBigDecimal(Value)

§

GetDurationFixedBytes(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

§size: usize
§

GetStringForFixed(Value)

§

GetEnumDefault

Fields

§symbol: String
§symbols: Vec<String>
§

GetEnumValue

Fields

§index: usize
§nsymbols: usize
§

GetDecimalMetadataFromJson(&'static str)

§

FindUnionVariant

Fields

§value: Value
§

EmptyUnion

§

GetArray

Fields

§expected: SchemaKind
§other: Value
§

GetMap

Fields

§expected: SchemaKind
§other: Value
§

GetRecord

Fields

§expected: Vec<(String, SchemaKind)>
§other: Value
§

GetNameField

§

GetNameFieldFromRecord

§

GetNestedUnion

§

GetUnionDuplicateMap(Schema, Schema)

§

GetUnionDuplicateArray(Schema, Schema)

§

GetUnionDuplicate(SchemaKind)

§

GetUnionDuplicateNamedSchemas(String)

§

GetDefaultUnion(SchemaKind, ValueKind)

§

GetDefaultRecordField(String, String, String, Value)

§

JsonNumberTooLarge(Number)

§

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)

§

ConvertI64ToU64(TryFromIntError, i64)

§

ConvertI32ToU64(TryFromIntError, i32)

§

ConvertI64ToU128(TryFromIntError, i64)

§

ConvertI32ToU128(TryFromIntError, i32)

§

ConvertUsizeToI64(TryFromIntError, usize)

§

GetPrecisionOrScaleFromJson(Number)

§

ParseSchemaJson(Error)

§

ReadSchemaFromReader(Error)

§

ParseSchemaFromValidJson

§

ParsePrimitive(String)

§

ParsePrimitiveSimilar(String, &'static str)

§

GetDecimalMetadataValueFromJson

Fields

§value: Value
§

DecimalPrecisionLessThanScale

Fields

§precision: usize
§scale: 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

§

GetRecordFieldTypeField

§

GetRecordFieldsJson

§

GetEnumSymbolsField

§

GetEnumSymbols

§

EnumSymbolName(String)

§

FieldName(String)

§

FieldNameDuplicate(String)

§

InvalidSchemaName(String, &'static str)

§

InvalidNamespace(String, &'static str)

§

InvalidSchemaRecord(String)

§

EnumSymbolDuplicate(String)

§

EnumDefaultWrongType(Value)

§

ArrayDefaultWrongType(Value)

§

ArrayDefaultWrongInnerType(Schema, Value)

§

MapDefaultWrongType(Value)

§

MapDefaultWrongInnerType(Schema, Value)

§

GetArrayItemsField

§

GetMapValuesField

§

GetFixedSizeFieldPositive(Value)

§

GetFixedSizeField

§

FixedDefaultLenSizeMismatch(usize, u64)

👎Deprecated since 0.22.0:

This error variant is not generated anymore

§

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)

§

BadSnappyLength(usize)

§

SnappyDecompress(Error)

§

ZstdCompress(Error)

§

ZstdDecompress(Error)

§

Bzip2Decompress(Error)

§

XzDecompress(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
§value: String
§schema: Schema
§

SerializeRecordUnknownFieldIndex

Fields

§position: usize
§

SerializeRecordFieldWithSchema

Fields

§field_name: String
§record_schema: RecordSchema
§error: String
§

MissingDefaultForSkippedField

Fields

§field_name: String
§

DeserializeValue(String)

§

DeserializeSchemaAware

Fields

§value_type: &'static str
§value: String
§schema: Schema
§

DeserializeIdentifier(&'static str)

§

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)

§

MapFieldExpectedString

§

MapNoKey

§

InvalidSchemaNameValidatorImplementation

§

SerializeTupleMissingElements

Fields

§position: usize
§total_elements: usize

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.