pub struct PatchAsset {
pub external_id: Option<UpdateSetNull<String>>,
pub name: Option<UpdateSet<String>>,
pub description: Option<UpdateSetNull<String>>,
pub data_set_id: Option<UpdateSetNull<i64>>,
pub metadata: Option<UpdateMap<String, String>>,
pub source: Option<UpdateSetNull<String>>,
pub parent_id: Option<UpdateSet<i64>>,
pub parent_external_id: Option<UpdateSet<String>>,
pub labels: Option<UpdateList<CogniteExternalId, CogniteExternalId>>,
pub geo_location: Option<UpdateSetNull<GeoLocation>>,
}Expand description
Update an asset.
Fields§
§external_id: Option<UpdateSetNull<String>>Unique external ID of the asset.
name: Option<UpdateSet<String>>Name of the asset.
description: Option<UpdateSetNull<String>>Description of the asset.
data_set_id: Option<UpdateSetNull<i64>>ID of the dataset this asset belongs to.
metadata: Option<UpdateMap<String, String>>Custom, application specific metadata. String key -> String value. Limits: Maximum length of key is 128 bytes, value 10240 bytes, up to 256 key-value pairs, of total size at most 10240.
source: Option<UpdateSetNull<String>>Source of the asset.
parent_id: Option<UpdateSet<i64>>Parent node ID used to specify a parent-child relationship. Do not use
in combination with parent_external_id
parent_external_id: Option<UpdateSet<String>>External ID of the parent asset. When specifying this field, the API will resolve the external ID into an internal ID and use the internal ID to store the parent-child relation. As a result, a later change to update the parent’s external ID will not affect this parent-child relationship as it is based on internal ID.
Do not use in combination with parent_id
labels: Option<UpdateList<CogniteExternalId, CogniteExternalId>>A list of labels associated with this asset.
geo_location: Option<UpdateSetNull<GeoLocation>>Geographic metadata.
Trait Implementations§
Source§impl Clone for PatchAsset
impl Clone for PatchAsset
Source§fn clone(&self) -> PatchAsset
fn clone(&self) -> PatchAsset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more