pub struct Attachment { /* private fields */ }Expand description
Attachment:附件资源
Implementations§
Source§impl Attachment
impl Attachment
Sourcepub fn upload(&self, file_path: String) -> UploadAttachmentRequest
pub fn upload(&self, file_path: String) -> UploadAttachmentRequest
upload。
Sourcepub fn delete(
&self,
attachment_guid: impl Into<String>,
) -> DeleteAttachmentRequest
pub fn delete( &self, attachment_guid: impl Into<String>, ) -> DeleteAttachmentRequest
创建删除请求。
Sourcepub fn get(&self, attachment_guid: impl Into<String>) -> GetAttachmentRequest
pub fn get(&self, attachment_guid: impl Into<String>) -> GetAttachmentRequest
获取附件(不需要 task_guid)
Sourcepub fn list(&self) -> ListAttachmentsRequest
pub fn list(&self) -> ListAttachmentsRequest
列取附件(不需要 task_guid)
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Attachment
impl !RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl !UnwindSafe for Attachment
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