pub struct SlackApiFilesUploadViaUrlRequest {
pub upload_url: SlackFileUploadUrl,
pub content: Vec<u8>,
pub content_type: String,
}
Fields§
§upload_url: SlackFileUploadUrl
§content: Vec<u8>
§content_type: String
Implementations§
Source§impl SlackApiFilesUploadViaUrlRequest
impl SlackApiFilesUploadViaUrlRequest
pub fn new( upload_url: SlackFileUploadUrl, content: Vec<u8>, content_type: String, ) -> Self
pub fn upload_url(&mut self, value: SlackFileUploadUrl) -> &mut Self
pub fn with_upload_url(self, value: SlackFileUploadUrl) -> Self
pub fn content(&mut self, value: Vec<u8>) -> &mut Self
pub fn with_content(self, value: Vec<u8>) -> Self
pub fn content_type(&mut self, value: String) -> &mut Self
pub fn with_content_type(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for SlackApiFilesUploadViaUrlRequest
impl Clone for SlackApiFilesUploadViaUrlRequest
Source§fn clone(&self) -> SlackApiFilesUploadViaUrlRequest
fn clone(&self) -> SlackApiFilesUploadViaUrlRequest
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 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.
Source§impl PartialEq for SlackApiFilesUploadViaUrlRequest
impl PartialEq for SlackApiFilesUploadViaUrlRequest
Source§fn eq(&self, other: &SlackApiFilesUploadViaUrlRequest) -> bool
fn eq(&self, other: &SlackApiFilesUploadViaUrlRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.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 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
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
)