pub struct AttachmentMeta {
pub id: u64,
pub name: String,
pub attachment_type: AttachmentType,
pub created_at: String,
pub created_by: User,
pub parent_id: Option<u64>,
pub parent_type: Option<ParentType>,
pub attachment_sub_type: Option<AttachmentSubType>,
pub mime_type: Option<String>,
pub size_in_kb: Option<u64>,
}
Expand description
Represents meta details on an Attachment in Smartsheet.
Attachments can exist on a comment (that is, within a discussion), on a row, or on a sheet.
Fields§
§id: u64
Attachment Id
name: String
Attachment name
attachment_type: AttachmentType
Attachment type (one of AttachmentType
)
§Note
Smartsheetgov.com
accounts are restricted to the following
attachment types: BOX_COM, FILE, GOOGLE_DRIVE, LINK, or ONEDRIVE.
created_at: String
A timestamp of when the attachment was originally added
created_by: User
User object containing name and email of the creator of this attachment
parent_id: Option<u64>
§parent_type: Option<ParentType>
The type of object the attachment belongs to (one of COMMENT, ROW, or SHEET)
§Note
This field does not appear to be populated when Get Sheet
is called
attachment_sub_type: Option<AttachmentSubType>
Attachment sub type, valid only for the following attachment types: EGNYTE, GOOGLE_DRIVE
mime_type: Option<String>
Attachment MIME type (PNG, etc.)
§Note
This field only seems to be populated for FILE
type attachments
size_in_kb: Option<u64>
The size of the file, if the attachmentType is FILE
§Note
This field only seems to be populated for FILE
type attachments
Trait Implementations§
Source§impl Clone for AttachmentMeta
impl Clone for AttachmentMeta
Source§fn clone(&self) -> AttachmentMeta
fn clone(&self) -> AttachmentMeta
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more