pub struct FilesUploadRequest {
pub channels: Vec<String>,
pub content: FilesUploadRequestContent,
pub filename: Option<String>,
pub filetype: Option<String>,
pub initial_comment: Option<String>,
pub thread_ts: Option<String>,
pub title: Option<String>,
}Expand description
The type that represents a request of files.upload.
Fields§
§channels: Vec<String>Comma-separated list of channel names or IDs where the file will be shared.
content: FilesUploadRequestContentFile contents via a POST variable.
filename: Option<String>Filename of file.
filetype: Option<String>§initial_comment: Option<String>The message text introducing the file in specified channels.
https://api.slack.com/methods/files.upload#arg_initial_comment
thread_ts: Option<String>Provide another message’s ts value to upload this file as a reply.
title: Option<String>Title of file.
Trait Implementations§
Source§impl Clone for FilesUploadRequest
impl Clone for FilesUploadRequest
Source§fn clone(&self) -> FilesUploadRequest
fn clone(&self) -> FilesUploadRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 FilesUploadRequest
impl RefUnwindSafe for FilesUploadRequest
impl Send for FilesUploadRequest
impl Sync for FilesUploadRequest
impl Unpin for FilesUploadRequest
impl UnwindSafe for FilesUploadRequest
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