pub struct PatchFile {
pub external_id: Option<UpdateSetNull<String>>,
pub directory: Option<UpdateSetNull<String>>,
pub source: Option<UpdateSetNull<String>>,
pub mime_type: Option<UpdateSetNull<String>>,
pub metadata: Option<UpdateMap<String, String>>,
pub asset_ids: Option<UpdateList<i64, i64>>,
pub source_created_time: Option<UpdateSetNull<i64>>,
pub source_modified_time: Option<UpdateSetNull<i64>>,
pub data_set_id: Option<UpdateSetNull<i64>>,
pub security_categories: Option<UpdateList<i64, i64>>,
pub labels: Option<UpdateList<CogniteExternalId, CogniteExternalId>>,
}Expand description
Update a file.
Fields§
§external_id: Option<UpdateSetNull<String>>File external ID. Must be unique accross all files in the project.
directory: Option<UpdateSetNull<String>>Directory containing the file. Must be an absolute, unix-style path.
source: Option<UpdateSetNull<String>>Source of the file.
mime_type: Option<UpdateSetNull<String>>File mime type, e.g. application/pdf.
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.
asset_ids: Option<UpdateList<i64, i64>>List of assets the file is tied to.
source_created_time: Option<UpdateSetNull<i64>>Timestamp in milliseconds since epoch when this file was created in the source system.
source_modified_time: Option<UpdateSetNull<i64>>Timestamp in milliseconds since epoch when this file was last modified in the source system.
data_set_id: Option<UpdateSetNull<i64>>Data set the file belongs to.
security_categories: Option<UpdateList<i64, i64>>The required security categories to access this file.
labels: Option<UpdateList<CogniteExternalId, CogniteExternalId>>List of labels associated with this file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PatchFile
impl<'de> Deserialize<'de> for PatchFile
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 PatchFile
impl RefUnwindSafe for PatchFile
impl Send for PatchFile
impl Sync for PatchFile
impl Unpin for PatchFile
impl UnwindSafe for PatchFile
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