#[non_exhaustive]pub struct UploadAttachmentResponse {
pub attachment_data_ref: Option<AttachmentDataRef>,
/* private fields */
}Expand description
Response of uploading an attachment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attachment_data_ref: Option<AttachmentDataRef>Reference to the uploaded attachment.
Implementations§
Source§impl UploadAttachmentResponse
impl UploadAttachmentResponse
Sourcepub fn set_attachment_data_ref<T>(self, v: T) -> Selfwhere
T: Into<AttachmentDataRef>,
pub fn set_attachment_data_ref<T>(self, v: T) -> Selfwhere
T: Into<AttachmentDataRef>,
Sets the value of attachment_data_ref.
§Example
ⓘ
use google_chat_v1::model::AttachmentDataRef;
let x = UploadAttachmentResponse::new().set_attachment_data_ref(AttachmentDataRef::default()/* use setters */);Sourcepub fn set_or_clear_attachment_data_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttachmentDataRef>,
pub fn set_or_clear_attachment_data_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttachmentDataRef>,
Sets or clears the value of attachment_data_ref.
§Example
ⓘ
use google_chat_v1::model::AttachmentDataRef;
let x = UploadAttachmentResponse::new().set_or_clear_attachment_data_ref(Some(AttachmentDataRef::default()/* use setters */));
let x = UploadAttachmentResponse::new().set_or_clear_attachment_data_ref(None::<AttachmentDataRef>);Trait Implementations§
Source§impl Clone for UploadAttachmentResponse
impl Clone for UploadAttachmentResponse
Source§fn clone(&self) -> UploadAttachmentResponse
fn clone(&self) -> UploadAttachmentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadAttachmentResponse
impl Debug for UploadAttachmentResponse
Source§impl Default for UploadAttachmentResponse
impl Default for UploadAttachmentResponse
Source§fn default() -> UploadAttachmentResponse
fn default() -> UploadAttachmentResponse
Returns the “default value” for a type. Read more
Source§impl Message for UploadAttachmentResponse
impl Message for UploadAttachmentResponse
Source§impl PartialEq for UploadAttachmentResponse
impl PartialEq for UploadAttachmentResponse
impl StructuralPartialEq for UploadAttachmentResponse
Auto Trait Implementations§
impl Freeze for UploadAttachmentResponse
impl RefUnwindSafe for UploadAttachmentResponse
impl Send for UploadAttachmentResponse
impl Sync for UploadAttachmentResponse
impl Unpin for UploadAttachmentResponse
impl UnsafeUnpin for UploadAttachmentResponse
impl UnwindSafe for UploadAttachmentResponse
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