pub struct SerialValidation {
pub is_valid: bool,
pub serial_id: Option<Uuid>,
pub status: Option<SerialStatus>,
pub sku: Option<String>,
pub error_message: Option<String>,
}Expand description
Serial number validation result
Fields§
§is_valid: bool§serial_id: Option<Uuid>§status: Option<SerialStatus>§sku: Option<String>§error_message: Option<String>Trait Implementations§
Source§impl Clone for SerialValidation
impl Clone for SerialValidation
Source§fn clone(&self) -> SerialValidation
fn clone(&self) -> SerialValidation
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 Debug for SerialValidation
impl Debug for SerialValidation
Source§impl<'de> Deserialize<'de> for SerialValidation
impl<'de> Deserialize<'de> for SerialValidation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerialValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerialValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SerialValidation
impl Serialize for SerialValidation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SerialValidation
impl RefUnwindSafe for SerialValidation
impl Send for SerialValidation
impl Sync for SerialValidation
impl Unpin for SerialValidation
impl UnsafeUnpin for SerialValidation
impl UnwindSafe for SerialValidation
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