pub struct FileUpload { /* private fields */ }Expand description
A file to upload with SlackClient::upload_files.
Implementations§
Source§impl FileUpload
impl FileUpload
pub fn new(filename: impl Into<String>, content: impl Into<Bytes>) -> Self
Sourcepub fn title(self, title: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
Title shown in Slack (defaults to the file name).
Sourcepub fn snippet_type(self, snippet_type: impl Into<String>) -> Self
pub fn snippet_type(self, snippet_type: impl Into<String>) -> Self
Syntax type when the file is shown as a snippet (python, rust, …).
Trait Implementations§
Source§impl Clone for FileUpload
impl Clone for FileUpload
Source§impl Debug for FileUpload
impl Debug for FileUpload
Source§impl PartialEq for FileUpload
impl PartialEq for FileUpload
impl StructuralPartialEq for FileUpload
Auto Trait Implementations§
impl !Freeze for FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin for FileUpload
impl UnsafeUnpin for FileUpload
impl UnwindSafe for FileUpload
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