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
Sourcepub fn new(filename: String, length: usize) -> Self
pub fn new(filename: String, length: usize) -> Self
Creates a new SlackApiFilesGetUploadUrlExternalRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_filename(self, value: String) -> Self
pub fn with_filename(self, value: String) -> Self
Returns self with filename set to value.
Sourcepub fn with_length(self, value: usize) -> Self
pub fn with_length(self, value: usize) -> Self
Returns self with length set to value.
Sourcepub fn reset_alt_txt(&mut self) -> &mut Self
pub fn reset_alt_txt(&mut self) -> &mut Self
Sets alt_txt to None.
Sourcepub fn mopt_alt_txt(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_alt_txt(&mut self, value: Option<String>) -> &mut Self
Sets alt_txt to the given Option.
Sourcepub fn with_alt_txt(self, value: String) -> Self
pub fn with_alt_txt(self, value: String) -> Self
Returns self with alt_txt set to Some(value).
Sourcepub fn without_alt_txt(self) -> Self
pub fn without_alt_txt(self) -> Self
Returns self with alt_txt set to None.
Sourcepub fn opt_alt_txt(self, value: Option<String>) -> Self
pub fn opt_alt_txt(self, value: Option<String>) -> Self
Returns self with alt_txt set to the given Option.
Sourcepub fn snippet_type(&mut self, value: SlackFileSnippetType) -> &mut Self
pub fn snippet_type(&mut self, value: SlackFileSnippetType) -> &mut Self
Sets snippet_type to Some(value).
Sourcepub fn reset_snippet_type(&mut self) -> &mut Self
pub fn reset_snippet_type(&mut self) -> &mut Self
Sets snippet_type to None.
Sourcepub fn mopt_snippet_type(
&mut self,
value: Option<SlackFileSnippetType>,
) -> &mut Self
pub fn mopt_snippet_type( &mut self, value: Option<SlackFileSnippetType>, ) -> &mut Self
Sets snippet_type to the given Option.
Sourcepub fn with_snippet_type(self, value: SlackFileSnippetType) -> Self
pub fn with_snippet_type(self, value: SlackFileSnippetType) -> Self
Returns self with snippet_type set to Some(value).
Sourcepub fn without_snippet_type(self) -> Self
pub fn without_snippet_type(self) -> Self
Returns self with snippet_type set to None.
Sourcepub fn opt_snippet_type(self, value: Option<SlackFileSnippetType>) -> Self
pub fn opt_snippet_type(self, value: Option<SlackFileSnippetType>) -> Self
Returns self with snippet_type set to the given Option.
Trait Implementations§
Source§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.
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 UnsafeUnpin 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