pub struct VersionedError {
pub error: ErrorInfo,
pub api_version: String,
pub migration_info: Option<MigrationInfo>,
}
Expand description
Version-aware error response structure
Fields§
§error: ErrorInfo
Error information
api_version: String
API version that generated this error
migration_info: Option<MigrationInfo>
Links to migration guides or documentation (if version is deprecated)
Trait Implementations§
Source§impl Clone for VersionedError
impl Clone for VersionedError
Source§fn clone(&self) -> VersionedError
fn clone(&self) -> VersionedError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VersionedError
impl Debug for VersionedError
Source§impl<'de> Deserialize<'de> for VersionedError
impl<'de> Deserialize<'de> for VersionedError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VersionedError
impl RefUnwindSafe for VersionedError
impl Send for VersionedError
impl Sync for VersionedError
impl Unpin for VersionedError
impl UnwindSafe for VersionedError
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