pub struct SlackApiFilesGetUploadUrlExternalRequest {
pub filename: String,
pub length: usize,
pub alt_txt: Option<String>,
pub snippet_type: Option<SlackFileSnippetType>,
}
Fields§
§filename: String
§length: usize
§alt_txt: Option<String>
§snippet_type: Option<SlackFileSnippetType>
Implementations§
Source§impl SlackApiFilesGetUploadUrlExternalRequest
impl SlackApiFilesGetUploadUrlExternalRequest
pub fn new(filename: String, length: usize) -> Self
pub fn filename(&mut self, value: String) -> &mut Self
pub fn with_filename(self, value: String) -> Self
pub fn length(&mut self, value: usize) -> &mut Self
pub fn with_length(self, value: usize) -> Self
pub fn alt_txt(&mut self, value: String) -> &mut Self
pub fn reset_alt_txt(&mut self) -> &mut Self
pub fn mopt_alt_txt(&mut self, value: Option<String>) -> &mut Self
pub fn with_alt_txt(self, value: String) -> Self
pub fn without_alt_txt(self) -> Self
pub fn opt_alt_txt(self, value: Option<String>) -> Self
pub fn snippet_type(&mut self, value: SlackFileSnippetType) -> &mut Self
pub fn reset_snippet_type(&mut self) -> &mut Self
pub fn mopt_snippet_type( &mut self, value: Option<SlackFileSnippetType>, ) -> &mut Self
pub fn with_snippet_type(self, value: SlackFileSnippetType) -> Self
pub fn without_snippet_type(self) -> Self
pub fn opt_snippet_type(self, value: Option<SlackFileSnippetType>) -> Self
Trait Implementations§
Source§impl Clone for SlackApiFilesGetUploadUrlExternalRequest
impl Clone for SlackApiFilesGetUploadUrlExternalRequest
Source§fn clone(&self) -> SlackApiFilesGetUploadUrlExternalRequest
fn clone(&self) -> SlackApiFilesGetUploadUrlExternalRequest
Returns a copy 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 moreSource§impl<'de> Deserialize<'de> for SlackApiFilesGetUploadUrlExternalRequest
impl<'de> Deserialize<'de> for SlackApiFilesGetUploadUrlExternalRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackApiFilesGetUploadUrlExternalRequestInit> for SlackApiFilesGetUploadUrlExternalRequest
impl From<SlackApiFilesGetUploadUrlExternalRequestInit> for SlackApiFilesGetUploadUrlExternalRequest
Source§fn from(value: SlackApiFilesGetUploadUrlExternalRequestInit) -> Self
fn from(value: SlackApiFilesGetUploadUrlExternalRequestInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiFilesGetUploadUrlExternalRequest
impl PartialEq for SlackApiFilesGetUploadUrlExternalRequest
Source§fn eq(&self, other: &SlackApiFilesGetUploadUrlExternalRequest) -> bool
fn eq(&self, other: &SlackApiFilesGetUploadUrlExternalRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackApiFilesGetUploadUrlExternalRequest
Auto Trait Implementations§
impl Freeze for SlackApiFilesGetUploadUrlExternalRequest
impl RefUnwindSafe for SlackApiFilesGetUploadUrlExternalRequest
impl Send for SlackApiFilesGetUploadUrlExternalRequest
impl Sync for SlackApiFilesGetUploadUrlExternalRequest
impl Unpin for SlackApiFilesGetUploadUrlExternalRequest
impl UnwindSafe for SlackApiFilesGetUploadUrlExternalRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)