pub struct SlackApiFilesGetUploadUrlExternalResponse {
pub upload_url: SlackFileUploadUrl,
pub file_id: SlackFileId,
}Fields§
§upload_url: SlackFileUploadUrl§file_id: SlackFileIdImplementations§
Source§impl SlackApiFilesGetUploadUrlExternalResponse
impl SlackApiFilesGetUploadUrlExternalResponse
Sourcepub fn new(upload_url: SlackFileUploadUrl, file_id: SlackFileId) -> Self
pub fn new(upload_url: SlackFileUploadUrl, file_id: SlackFileId) -> Self
Creates a new SlackApiFilesGetUploadUrlExternalResponse 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 file_id(&mut self, value: SlackFileId) -> &mut Self
pub fn file_id(&mut self, value: SlackFileId) -> &mut Self
Sets file_id to value.
Sourcepub fn with_file_id(self, value: SlackFileId) -> Self
pub fn with_file_id(self, value: SlackFileId) -> Self
Returns self with file_id set to value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiFilesGetUploadUrlExternalResponse
impl<'de> Deserialize<'de> for SlackApiFilesGetUploadUrlExternalResponse
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<SlackApiFilesGetUploadUrlExternalResponseInit> for SlackApiFilesGetUploadUrlExternalResponse
impl From<SlackApiFilesGetUploadUrlExternalResponseInit> for SlackApiFilesGetUploadUrlExternalResponse
Source§fn from(value: SlackApiFilesGetUploadUrlExternalResponseInit) -> Self
fn from(value: SlackApiFilesGetUploadUrlExternalResponseInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiFilesGetUploadUrlExternalResponse
Auto Trait Implementations§
impl Freeze for SlackApiFilesGetUploadUrlExternalResponse
impl RefUnwindSafe for SlackApiFilesGetUploadUrlExternalResponse
impl Send for SlackApiFilesGetUploadUrlExternalResponse
impl Sync for SlackApiFilesGetUploadUrlExternalResponse
impl Unpin for SlackApiFilesGetUploadUrlExternalResponse
impl UnsafeUnpin for SlackApiFilesGetUploadUrlExternalResponse
impl UnwindSafe for SlackApiFilesGetUploadUrlExternalResponse
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