pub struct AssetLink {
pub asset_type: String,
pub asset_id: Uuid,
pub asset_name: String,
pub relationship: Option<AssetRelationship>,
}Expand description
Link to an asset (table, relationship, product, etc.)
Fields§
§asset_type: StringType of asset (odcs, odps, cads, relationship)
asset_id: UuidUUID of the linked asset
asset_name: StringName of the linked asset
relationship: Option<AssetRelationship>Relationship between decision and asset
Implementations§
Source§impl AssetLink
impl AssetLink
Sourcepub fn new(
asset_type: impl Into<String>,
asset_id: Uuid,
asset_name: impl Into<String>,
) -> AssetLink
pub fn new( asset_type: impl Into<String>, asset_id: Uuid, asset_name: impl Into<String>, ) -> AssetLink
Create a new asset link
Sourcepub fn with_relationship(
asset_type: impl Into<String>,
asset_id: Uuid,
asset_name: impl Into<String>,
relationship: AssetRelationship,
) -> AssetLink
pub fn with_relationship( asset_type: impl Into<String>, asset_id: Uuid, asset_name: impl Into<String>, relationship: AssetRelationship, ) -> AssetLink
Create an asset link with relationship
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetLink
impl<'de> Deserialize<'de> for AssetLink
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AssetLink
impl Serialize for AssetLink
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 AssetLink
Auto Trait Implementations§
impl Freeze for AssetLink
impl RefUnwindSafe for AssetLink
impl Send for AssetLink
impl Sync for AssetLink
impl Unpin for AssetLink
impl UnwindSafe for AssetLink
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