pub struct CtFile {Show 21 fields
pub additional_infos: Option<BTreeMap<String, Value>>,
pub ai_generated: bool,
pub annotation: Option<String>,
pub annotation_link: Option<String>,
pub description: Option<String>,
pub domain_id: String,
pub domain_type: String,
pub file_url: String,
pub filename: String,
pub image_metadata: Option<CtFileImageMetadata>,
pub image_option: Option<CtFileImageOption>,
pub image_url: Option<String>,
pub meta: FileMetaData,
pub name: String,
pub relative_url: String,
pub security_level_id: Option<i64>,
pub show_only_when_editable: bool,
pub size: Option<i64>,
pub type: String,
pub id: i64,
pub extra: Map<String, Value>,
}Expand description
Metadata for a stored file or URL attachment. domainType and domainId identify the owning attachment context.
Fields§
§additional_infos: Option<BTreeMap<String, Value>>Domain-specific extra data. Empty for most files (serialized as an empty array), but some domains add a key-value object (e.g. statement uploads return { "statementId": 1 }).
ai_generated: boolWhether the image was generated by artificial intelligence.
annotation: Option<String>Image credit or attribution.
annotation_link: Option<String>Attribution link.
description: Option<String>File or image description.
domain_id: StringAttachment-context identifier; its meaning depends on domainType.
domain_type: StringStored attachment category. Internal categories may not be accepted by the domain-based file routes.
file_url: StringAbsolute download URL or external link URL.
filename: StringStorage filename/hash for a binary file, or the target URL for a link. name is the user-facing display name.
image_metadata: Option<CtFileImageMetadata>Image dimensions calculated from the file.
image_option: Option<CtFileImageOption>§image_url: Option<String>§meta: FileMetaData§name: String§relative_url: StringLegacy relative download URL, or an absolute external URL for a link.
security_level_id: Option<i64>§show_only_when_editable: boolWhether domain lists show the file only to users who may edit its owning object.
size: Option<i64>The file size in byte
type: Stringfile for a stored file, link for a filename beginning with http.
Allowed values: file, link.
id: i64Persisted file record ID.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.