Struct asana::models::attachment_response::AttachmentResponse
source · [−]pub struct AttachmentResponse {
pub gid: Option<String>,
pub resource_type: Option<String>,
pub name: Option<String>,
pub resource_subtype: Option<Value>,
pub created_at: Option<String>,
pub download_url: Option<String>,
pub host: Option<String>,
pub parent: Option<Box<TaskCompact>>,
pub view_url: Option<String>,
}
Fields
gid: Option<String>
Globally unique identifier of the resource, as a string.
resource_type: Option<String>
The base type of this resource.
name: Option<String>
The name of the file.
resource_subtype: Option<Value>
The service hosting the attachment. Valid values are asana
, dropbox
, gdrive
, onedrive
, box
, and external
. external
attachments are a beta feature currently limited to specific integrations.
created_at: Option<String>
The time at which this resource was created.
download_url: Option<String>
The URL containing the content of the attachment. Note: May be null if the attachment is hosted by Box. If present, this URL may only be valid for two minutes from the time of retrieval. You should avoid persisting this URL somewhere and just refresh it on demand to ensure you do not keep stale URLs.
host: Option<String>
The service hosting the attachment. Valid values are asana
, dropbox
, gdrive
and box
.
parent: Option<Box<TaskCompact>>
view_url: Option<String>
The URL where the attachment can be viewed, which may be friendlier to users in a browser than just directing them to a raw file. May be null if no view URL exists for the service.
Implementations
sourceimpl AttachmentResponse
impl AttachmentResponse
pub fn new() -> AttachmentResponse
Trait Implementations
sourceimpl Clone for AttachmentResponse
impl Clone for AttachmentResponse
sourcefn clone(&self) -> AttachmentResponse
fn clone(&self) -> AttachmentResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more