pub struct AssetReference {
pub id: Uuid,
pub name: String,
pub domain: String,
pub system: Option<String>,
pub asset_type: AssetType,
pub file_path: Option<String>,
}Expand description
Asset reference within a workspace
Contains information about an asset file and its location in the domain/system hierarchy.
Fields§
§id: UuidAsset identifier (UUID)
name: StringAsset name
domain: StringDomain name this asset belongs to
system: Option<String>Optional system name (if asset is within a system)
asset_type: AssetTypeAsset type (odcs, odps, cads)
file_path: Option<String>File path relative to workspace (generated from naming convention)
Trait Implementations§
Source§impl Clone for AssetReference
impl Clone for AssetReference
Source§fn clone(&self) -> AssetReference
fn clone(&self) -> AssetReference
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 AssetReference
impl Debug for AssetReference
Source§impl<'de> Deserialize<'de> for AssetReference
impl<'de> Deserialize<'de> for AssetReference
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AssetReference
impl PartialEq for AssetReference
Source§impl Serialize for AssetReference
impl Serialize for AssetReference
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 AssetReference
Auto Trait Implementations§
impl Freeze for AssetReference
impl RefUnwindSafe for AssetReference
impl Send for AssetReference
impl Sync for AssetReference
impl Unpin for AssetReference
impl UnwindSafe for AssetReference
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