pub struct SerialRegisterInput {
pub serial_number: String,
pub sku: String,
pub location_id: String,
pub lot_number: Option<String>,
pub manufacture_date: Option<String>,
pub expiry_date: Option<String>,
pub rfid_tag: Option<String>,
}Fields§
§serial_number: StringSerial number (unique identifier for this individual unit)
sku: StringSKU this serial belongs to
location_id: StringLocation where item is stored
lot_number: Option<String>Lot/batch number
manufacture_date: Option<String>Manufacture date
expiry_date: Option<String>Expiry date
rfid_tag: Option<String>RFID EPC tag (if tagged)
Trait Implementations§
Source§impl Debug for SerialRegisterInput
impl Debug for SerialRegisterInput
Source§impl<'de> Deserialize<'de> for SerialRegisterInput
impl<'de> Deserialize<'de> for SerialRegisterInput
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
Source§impl JsonSchema for SerialRegisterInput
impl JsonSchema for SerialRegisterInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SerialRegisterInput
impl RefUnwindSafe for SerialRegisterInput
impl Send for SerialRegisterInput
impl Sync for SerialRegisterInput
impl Unpin for SerialRegisterInput
impl UnsafeUnpin for SerialRegisterInput
impl UnwindSafe for SerialRegisterInput
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