pub struct SlackApiFilesUploadViaUrlRequest {
pub upload_url: SlackFileUploadUrl,
pub content: Vec<u8>,
pub content_type: String,
}Fields§
§upload_url: SlackFileUploadUrl§content: Vec<u8>§content_type: StringImplementations§
Source§impl SlackApiFilesUploadViaUrlRequest
impl SlackApiFilesUploadViaUrlRequest
Sourcepub fn new(
upload_url: SlackFileUploadUrl,
content: Vec<u8>,
content_type: String,
) -> Self
pub fn new( upload_url: SlackFileUploadUrl, content: Vec<u8>, content_type: String, ) -> Self
Creates a new SlackApiFilesUploadViaUrlRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn upload_url(&mut self, value: SlackFileUploadUrl) -> &mut Self
pub fn upload_url(&mut self, value: SlackFileUploadUrl) -> &mut Self
Sets upload_url to value.
Sourcepub fn with_upload_url(self, value: SlackFileUploadUrl) -> Self
pub fn with_upload_url(self, value: SlackFileUploadUrl) -> Self
Returns self with upload_url set to value.
Sourcepub fn with_content(self, value: Vec<u8>) -> Self
pub fn with_content(self, value: Vec<u8>) -> Self
Returns self with content set to value.
Sourcepub fn content_type(&mut self, value: String) -> &mut Self
pub fn content_type(&mut self, value: String) -> &mut Self
Sets content_type to value.
Sourcepub fn with_content_type(self, value: String) -> Self
pub fn with_content_type(self, value: String) -> Self
Returns self with content_type set to value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiFilesUploadViaUrlRequest
impl<'de> Deserialize<'de> for SlackApiFilesUploadViaUrlRequest
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<SlackApiFilesUploadViaUrlRequestInit> for SlackApiFilesUploadViaUrlRequest
impl From<SlackApiFilesUploadViaUrlRequestInit> for SlackApiFilesUploadViaUrlRequest
Source§fn from(value: SlackApiFilesUploadViaUrlRequestInit) -> Self
fn from(value: SlackApiFilesUploadViaUrlRequestInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiFilesUploadViaUrlRequest
Auto Trait Implementations§
impl Freeze for SlackApiFilesUploadViaUrlRequest
impl RefUnwindSafe for SlackApiFilesUploadViaUrlRequest
impl Send for SlackApiFilesUploadViaUrlRequest
impl Sync for SlackApiFilesUploadViaUrlRequest
impl Unpin for SlackApiFilesUploadViaUrlRequest
impl UnsafeUnpin for SlackApiFilesUploadViaUrlRequest
impl UnwindSafe for SlackApiFilesUploadViaUrlRequest
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