#[non_exhaustive]pub struct FilesRemoteAddRequest {
pub external_id: String,
pub external_url: String,
pub title: String,
pub filetype: Option<String>,
pub indexable_file_contents: Option<String>,
pub preview_image: Option<String>,
}Expand description
Arguments for the Slack Web API method files.remote.add: Adds a file from a remote service
Send it with SlackClient::files_remote_add.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.external_id: StringCreator defined GUID for the file.
external_url: StringURL of the remote file.
title: StringTitle of the file being shared.
filetype: Option<String>type of file
indexable_file_contents: Option<String>A text file (txt, pdf, doc, etc.) containing textual search terms that are used to improve discovery of the remote file.
preview_image: Option<String>Preview of the document via multipart/form-data.
Implementations§
Source§impl FilesRemoteAddRequest
impl FilesRemoteAddRequest
pub fn new( external_id: impl Into<String>, external_url: impl Into<String>, title: impl Into<String>, ) -> Self
pub fn filetype(self, filetype: impl Into<String>) -> Self
pub fn indexable_file_contents( self, indexable_file_contents: impl Into<String>, ) -> Self
pub fn preview_image(self, preview_image: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for FilesRemoteAddRequest
impl Clone for FilesRemoteAddRequest
Source§impl Debug for FilesRemoteAddRequest
impl Debug for FilesRemoteAddRequest
Source§impl PartialEq for FilesRemoteAddRequest
impl PartialEq for FilesRemoteAddRequest
Source§impl Serialize for FilesRemoteAddRequest
impl Serialize for FilesRemoteAddRequest
impl StructuralPartialEq for FilesRemoteAddRequest
Auto Trait Implementations§
impl Freeze for FilesRemoteAddRequest
impl RefUnwindSafe for FilesRemoteAddRequest
impl Send for FilesRemoteAddRequest
impl Sync for FilesRemoteAddRequest
impl Unpin for FilesRemoteAddRequest
impl UnsafeUnpin for FilesRemoteAddRequest
impl UnwindSafe for FilesRemoteAddRequest
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