pub struct StatusInfo<CustomDataType = NoCustomData> {
pub additional_info: Option<String<512usize>>,
pub custom_data: Option<CustomDataType>,
pub reason_code: String<20usize>,
}Expand description
Element providing more information about the status.
Fields§
§additional_info: Option<String<512usize>>Additional text to provide detailed information.
custom_data: Option<CustomDataType>§reason_code: String<20usize>A predefined code for the reason why the status is returned in this response. The string is case-insensitive.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for StatusInfo<CustomDataType>
impl<CustomDataType: Clone> Clone for StatusInfo<CustomDataType>
Source§fn clone(&self) -> StatusInfo<CustomDataType>
fn clone(&self) -> StatusInfo<CustomDataType>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomDataType: Debug> Debug for StatusInfo<CustomDataType>
impl<CustomDataType: Debug> Debug for StatusInfo<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for StatusInfo<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for StatusInfo<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for StatusInfo<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for StatusInfo<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for StatusInfo<CustomDataType>
Source§impl<CustomDataType> Serialize for StatusInfo<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for StatusInfo<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for StatusInfo<CustomDataType>
Source§impl<CustomDataType> Validate for StatusInfo<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for StatusInfo<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for StatusInfo<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for StatusInfo<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for StatusInfo<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for StatusInfo<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for StatusInfo<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for StatusInfo<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for StatusInfo<CustomDataType>where
CustomDataType: 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