pub struct SerialHistory {Show 14 fields
pub id: Uuid,
pub serial_id: Uuid,
pub event_type: SerialEventType,
pub reference_type: Option<String>,
pub reference_id: Option<Uuid>,
pub from_status: SerialStatus,
pub to_status: SerialStatus,
pub from_location_id: Option<i32>,
pub to_location_id: Option<i32>,
pub from_owner_id: Option<Uuid>,
pub to_owner_id: Option<Uuid>,
pub performed_by: Option<String>,
pub notes: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
History event for a serial number
Fields§
§id: Uuid§serial_id: Uuid§event_type: SerialEventType§reference_type: Option<String>§reference_id: Option<Uuid>§from_status: SerialStatus§to_status: SerialStatus§from_location_id: Option<i32>§to_location_id: Option<i32>§from_owner_id: Option<Uuid>§to_owner_id: Option<Uuid>§performed_by: Option<String>§notes: Option<String>§created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for SerialHistory
impl Clone for SerialHistory
Source§fn clone(&self) -> SerialHistory
fn clone(&self) -> SerialHistory
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 SerialHistory
impl Debug for SerialHistory
Source§impl<'de> Deserialize<'de> for SerialHistory
impl<'de> Deserialize<'de> for SerialHistory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerialHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerialHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SerialHistory
Source§impl PartialEq for SerialHistory
impl PartialEq for SerialHistory
Source§impl Serialize for SerialHistory
impl Serialize for SerialHistory
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
impl StructuralPartialEq for SerialHistory
Auto Trait Implementations§
impl Freeze for SerialHistory
impl RefUnwindSafe for SerialHistory
impl Send for SerialHistory
impl Sync for SerialHistory
impl Unpin for SerialHistory
impl UnsafeUnpin for SerialHistory
impl UnwindSafe for SerialHistory
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