#[non_exhaustive]pub struct CreateCustomEmojiRequest {
pub custom_emoji: Option<CustomEmoji>,
/* private fields */
}Expand description
A request to create a custom emoji.
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.custom_emoji: Option<CustomEmoji>Required. The custom emoji to create.
Implementations§
Source§impl CreateCustomEmojiRequest
impl CreateCustomEmojiRequest
Sourcepub fn set_custom_emoji<T>(self, v: T) -> Selfwhere
T: Into<CustomEmoji>,
pub fn set_custom_emoji<T>(self, v: T) -> Selfwhere
T: Into<CustomEmoji>,
Sets the value of custom_emoji.
§Example
ⓘ
use google_chat_v1::model::CustomEmoji;
let x = CreateCustomEmojiRequest::new().set_custom_emoji(CustomEmoji::default()/* use setters */);Sourcepub fn set_or_clear_custom_emoji<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomEmoji>,
pub fn set_or_clear_custom_emoji<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomEmoji>,
Sets or clears the value of custom_emoji.
§Example
ⓘ
use google_chat_v1::model::CustomEmoji;
let x = CreateCustomEmojiRequest::new().set_or_clear_custom_emoji(Some(CustomEmoji::default()/* use setters */));
let x = CreateCustomEmojiRequest::new().set_or_clear_custom_emoji(None::<CustomEmoji>);Trait Implementations§
Source§impl Clone for CreateCustomEmojiRequest
impl Clone for CreateCustomEmojiRequest
Source§fn clone(&self) -> CreateCustomEmojiRequest
fn clone(&self) -> CreateCustomEmojiRequest
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 CreateCustomEmojiRequest
impl Debug for CreateCustomEmojiRequest
Source§impl Default for CreateCustomEmojiRequest
impl Default for CreateCustomEmojiRequest
Source§fn default() -> CreateCustomEmojiRequest
fn default() -> CreateCustomEmojiRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateCustomEmojiRequest
impl Message for CreateCustomEmojiRequest
Source§impl PartialEq for CreateCustomEmojiRequest
impl PartialEq for CreateCustomEmojiRequest
impl StructuralPartialEq for CreateCustomEmojiRequest
Auto Trait Implementations§
impl !Freeze for CreateCustomEmojiRequest
impl RefUnwindSafe for CreateCustomEmojiRequest
impl Send for CreateCustomEmojiRequest
impl Sync for CreateCustomEmojiRequest
impl Unpin for CreateCustomEmojiRequest
impl UnsafeUnpin for CreateCustomEmojiRequest
impl UnwindSafe for CreateCustomEmojiRequest
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