pub struct AssetMetadata {
pub equipment_mrid: String,
pub serial_number: Option<String>,
pub manufacturer: Option<String>,
pub model_number: Option<String>,
pub manufactured_date: Option<DateTime<Utc>>,
pub installation_date: Option<DateTime<Utc>>,
pub retired_date: Option<DateTime<Utc>>,
}Expand description
General asset metadata from CIM Asset / ProductAssetModel.
Fields§
§equipment_mrid: StringEquipment mRID this asset record is associated with.
serial_number: Option<String>Serial number.
manufacturer: Option<String>Manufacturer name (from ProductAssetModel).
model_number: Option<String>Model number.
manufactured_date: Option<DateTime<Utc>>Date of manufacture.
installation_date: Option<DateTime<Utc>>Installation date.
retired_date: Option<DateTime<Utc>>Retirement date.
Trait Implementations§
Source§impl Clone for AssetMetadata
impl Clone for AssetMetadata
Source§fn clone(&self) -> AssetMetadata
fn clone(&self) -> AssetMetadata
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 AssetMetadata
impl Debug for AssetMetadata
Source§impl Default for AssetMetadata
impl Default for AssetMetadata
Source§fn default() -> AssetMetadata
fn default() -> AssetMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssetMetadata
impl<'de> Deserialize<'de> for AssetMetadata
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 AssetMetadata
impl RefUnwindSafe for AssetMetadata
impl Send for AssetMetadata
impl Sync for AssetMetadata
impl Unpin for AssetMetadata
impl UnsafeUnpin for AssetMetadata
impl UnwindSafe for AssetMetadata
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