Struct spacetimedb_lib::de::serde::SerdeError
source · #[repr(transparent)]pub struct SerdeError<E>(pub E);Expand description
An error that occured when deserializing SATS to a Serde data format.
Tuple Fields§
§0: ETrait Implementations§
source§impl<E> Error for SerdeError<E>where
E: Error,
impl<E> Error for SerdeError<E>where
E: Error,
source§fn custom(msg: impl Display) -> SerdeError<E>
fn custom(msg: impl Display) -> SerdeError<E>
Raised when there is general error when deserializing a type.
source§fn invalid_product_length<'de, T>(len: usize, expected: &T) -> SerdeError<E>where
T: ProductVisitor<'de>,
fn invalid_product_length<'de, T>(len: usize, expected: &T) -> SerdeError<E>where
T: ProductVisitor<'de>,
The product length was not as promised.
source§fn missing_field<'de, T>(
index: usize,
field_name: Option<&str>,
prod: &T
) -> Selfwhere
T: ProductVisitor<'de>,
fn missing_field<'de, T>(
index: usize,
field_name: Option<&str>,
prod: &T
) -> Selfwhere
T: ProductVisitor<'de>,
There was a missing field at
index.source§fn duplicate_field<'de, T>(
index: usize,
field_name: Option<&str>,
prod: &T
) -> Selfwhere
T: ProductVisitor<'de>,
fn duplicate_field<'de, T>(
index: usize,
field_name: Option<&str>,
prod: &T
) -> Selfwhere
T: ProductVisitor<'de>,
A field with
index was specified more than once.source§fn unknown_field_name<'de, T>(field_name: &str, expected: &T) -> Selfwhere
T: FieldNameVisitor<'de>,
fn unknown_field_name<'de, T>(field_name: &str, expected: &T) -> Selfwhere
T: FieldNameVisitor<'de>,
A field with name
field_name does not exist.source§fn unknown_variant_tag<'de, T>(tag: u8, expected: &T) -> Selfwhere
T: SumVisitor<'de>,
fn unknown_variant_tag<'de, T>(tag: u8, expected: &T) -> Selfwhere
T: SumVisitor<'de>,
The
tag does not specify a variant of the sum type.source§fn unknown_variant_name<T>(name: &str, expected: &T) -> Selfwhere
T: VariantVisitor,
fn unknown_variant_name<T>(name: &str, expected: &T) -> Selfwhere
T: VariantVisitor,
The
name is not that of a variant of the sum type.Auto Trait Implementations§
impl<E> RefUnwindSafe for SerdeError<E>where
E: RefUnwindSafe,
impl<E> Send for SerdeError<E>where
E: Send,
impl<E> Sync for SerdeError<E>where
E: Sync,
impl<E> Unpin for SerdeError<E>where
E: Unpin,
impl<E> UnwindSafe for SerdeError<E>where
E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more