pub struct FileMetadata {Show 17 fields
pub external_id: Option<String>,
pub name: String,
pub directory: Option<String>,
pub source: Option<String>,
pub mime_type: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub asset_ids: Option<Vec<i64>>,
pub data_set_id: Option<i64>,
pub source_created_time: Option<i64>,
pub source_modified_time: Option<i64>,
pub security_categories: Option<Vec<i64>>,
pub labels: Option<Vec<CogniteExternalId>>,
pub id: i64,
pub uploaded: bool,
pub uploaded_time: Option<i64>,
pub created_time: i64,
pub last_updated_time: i64,
}Expand description
Description of a CDF file.
Fields§
§external_id: Option<String>File external ID. Must be unique accross all files in the project.
name: StringFile name.
directory: Option<String>Directory containing the file. Must be an absolute, unix-style path.
source: Option<String>Source of the file.
mime_type: Option<String>File mime type, e.g. application/pdf.
metadata: Option<HashMap<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<Vec<i64>>List of assets the file is tied to.
data_set_id: Option<i64>Data set the file belongs to.
source_created_time: Option<i64>Timestamp in milliseconds since epoch when this file was created in the source system.
source_modified_time: Option<i64>Timestamp in milliseconds since epoch when this file was last modified in the source system.
security_categories: Option<Vec<i64>>The required security categories to access this file.
labels: Option<Vec<CogniteExternalId>>List of labels associated with this file.
id: i64File internal ID.
uploaded: boolWhether or not the actual file is uploaded.
uploaded_time: Option<i64>Time this file was uploaded, in milliseconds since epoch.
created_time: i64Time this file was created, in milliseconds since epoch.
last_updated_time: i64Time this file was last modified, in milliseconds since epoch.
Trait Implementations§
Source§impl CleanResource<FileMetadata> for Files
impl CleanResource<FileMetadata> for Files
Source§async fn clean_resource(
&self,
resources: Vec<FileMetadata>,
) -> Result<(), Error>
async fn clean_resource( &self, resources: Vec<FileMetadata>, ) -> Result<(), Error>
Source§impl Clone for FileMetadata
impl Clone for FileMetadata
Source§fn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more