#[non_exhaustive]pub struct FilesRemoteUpdateRequest {
pub external_id: Option<String>,
pub external_url: Option<String>,
pub file: Option<String>,
pub filetype: Option<String>,
pub indexable_file_contents: Option<String>,
pub preview_image: Option<String>,
pub title: Option<String>,
}Expand description
Arguments for the Slack Web API method files.remote.update: Updates an existing remote file.
Send it with SlackClient::files_remote_update.
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: Option<String>Creator defined GUID for the file.
external_url: Option<String>URL of the remote file.
file: Option<String>Specify a file by providing its ID.
filetype: Option<String>type of file
indexable_file_contents: Option<String>File containing contents that can be used to improve searchability for the remote file.
preview_image: Option<String>Preview of the document via multipart/form-data.
title: Option<String>Title of the file being shared.
Implementations§
Source§impl FilesRemoteUpdateRequest
impl FilesRemoteUpdateRequest
pub fn new() -> Self
pub fn external_id(self, external_id: impl Into<String>) -> Self
pub fn external_url(self, external_url: impl Into<String>) -> Self
pub fn file(self, file: 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
pub fn title(self, title: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for FilesRemoteUpdateRequest
impl Clone for FilesRemoteUpdateRequest
Source§impl Debug for FilesRemoteUpdateRequest
impl Debug for FilesRemoteUpdateRequest
Source§impl Default for FilesRemoteUpdateRequest
impl Default for FilesRemoteUpdateRequest
Source§impl PartialEq for FilesRemoteUpdateRequest
impl PartialEq for FilesRemoteUpdateRequest
Source§impl Serialize for FilesRemoteUpdateRequest
impl Serialize for FilesRemoteUpdateRequest
impl StructuralPartialEq for FilesRemoteUpdateRequest
Auto Trait Implementations§
impl Freeze for FilesRemoteUpdateRequest
impl RefUnwindSafe for FilesRemoteUpdateRequest
impl Send for FilesRemoteUpdateRequest
impl Sync for FilesRemoteUpdateRequest
impl Unpin for FilesRemoteUpdateRequest
impl UnsafeUnpin for FilesRemoteUpdateRequest
impl UnwindSafe for FilesRemoteUpdateRequest
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