#[non_exhaustive]pub struct AssetAttributes {
pub arch: Option<String>,
pub environments: Vec<String>,
pub name: String,
pub operating_system: Option<AssetOperatingSystem>,
pub risks: AssetRisks,
pub teams: Option<Vec<String>>,
pub type_: AssetType,
pub version: Option<AssetVersion>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The JSON:API attributes of the asset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arch: Option<String>
Asset architecture.
environments: Vec<String>
List of environments where the asset is deployed.
name: String
Asset name.
operating_system: Option<AssetOperatingSystem>
Asset operating system.
risks: AssetRisks
Asset risks.
teams: Option<Vec<String>>
List of teams that own the asset.
type_: AssetType
The asset type
version: Option<AssetVersion>
Asset version.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AssetAttributes
impl AssetAttributes
pub fn new( environments: Vec<String>, name: String, risks: AssetRisks, type_: AssetType, ) -> AssetAttributes
pub fn arch(self, value: String) -> Self
pub fn operating_system(self, value: AssetOperatingSystem) -> Self
pub fn teams(self, value: Vec<String>) -> Self
pub fn version(self, value: AssetVersion) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AssetAttributes
impl Clone for AssetAttributes
Source§fn clone(&self) -> AssetAttributes
fn clone(&self) -> AssetAttributes
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 AssetAttributes
impl Debug for AssetAttributes
Source§impl<'de> Deserialize<'de> for AssetAttributes
impl<'de> Deserialize<'de> for AssetAttributes
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 PartialEq for AssetAttributes
impl PartialEq for AssetAttributes
Source§impl Serialize for AssetAttributes
impl Serialize for AssetAttributes
impl StructuralPartialEq for AssetAttributes
Auto Trait Implementations§
impl Freeze for AssetAttributes
impl RefUnwindSafe for AssetAttributes
impl Send for AssetAttributes
impl Sync for AssetAttributes
impl Unpin for AssetAttributes
impl UnwindSafe for AssetAttributes
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