#[non_exhaustive]pub struct ListCustomEmojisResponse {
pub custom_emojis: Vec<CustomEmoji>,
pub next_page_token: String,
/* private fields */
}Expand description
A response to list custom emojis.
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_emojis: Vec<CustomEmoji>Unordered list. List of custom emojis.
next_page_token: StringA token that you can send as pageToken to retrieve the next page of
results. If empty, there are no subsequent pages.
Implementations§
Source§impl ListCustomEmojisResponse
impl ListCustomEmojisResponse
Sourcepub fn set_custom_emojis<T, V>(self, v: T) -> Self
pub fn set_custom_emojis<T, V>(self, v: T) -> Self
Sets the value of custom_emojis.
§Example
ⓘ
use google_chat_v1::model::CustomEmoji;
let x = ListCustomEmojisResponse::new()
.set_custom_emojis([
CustomEmoji::default()/* use setters */,
CustomEmoji::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListCustomEmojisResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListCustomEmojisResponse
impl Clone for ListCustomEmojisResponse
Source§fn clone(&self) -> ListCustomEmojisResponse
fn clone(&self) -> ListCustomEmojisResponse
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 ListCustomEmojisResponse
impl Debug for ListCustomEmojisResponse
Source§impl Default for ListCustomEmojisResponse
impl Default for ListCustomEmojisResponse
Source§fn default() -> ListCustomEmojisResponse
fn default() -> ListCustomEmojisResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListCustomEmojisResponse
impl Message for ListCustomEmojisResponse
Source§impl PartialEq for ListCustomEmojisResponse
impl PartialEq for ListCustomEmojisResponse
impl StructuralPartialEq for ListCustomEmojisResponse
Auto Trait Implementations§
impl Freeze for ListCustomEmojisResponse
impl RefUnwindSafe for ListCustomEmojisResponse
impl Send for ListCustomEmojisResponse
impl Sync for ListCustomEmojisResponse
impl Unpin for ListCustomEmojisResponse
impl UnsafeUnpin for ListCustomEmojisResponse
impl UnwindSafe for ListCustomEmojisResponse
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