#[non_exhaustive]pub struct ListMembershipsResponse {
pub memberships: Vec<Membership>,
pub next_page_token: String,
/* private fields */
}Expand description
Response to list memberships of the space.
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.memberships: Vec<Membership>Unordered list. List of memberships in the requested (or first) page.
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 ListMembershipsResponse
impl ListMembershipsResponse
Sourcepub fn set_memberships<T, V>(self, v: T) -> Self
pub fn set_memberships<T, V>(self, v: T) -> Self
Sets the value of memberships.
§Example
ⓘ
use google_chat_v1::model::Membership;
let x = ListMembershipsResponse::new()
.set_memberships([
Membership::default()/* use setters */,
Membership::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 = ListMembershipsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListMembershipsResponse
impl Clone for ListMembershipsResponse
Source§fn clone(&self) -> ListMembershipsResponse
fn clone(&self) -> ListMembershipsResponse
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 ListMembershipsResponse
impl Debug for ListMembershipsResponse
Source§impl Default for ListMembershipsResponse
impl Default for ListMembershipsResponse
Source§fn default() -> ListMembershipsResponse
fn default() -> ListMembershipsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListMembershipsResponse
impl Message for ListMembershipsResponse
Source§impl PartialEq for ListMembershipsResponse
impl PartialEq for ListMembershipsResponse
impl StructuralPartialEq for ListMembershipsResponse
Auto Trait Implementations§
impl Freeze for ListMembershipsResponse
impl RefUnwindSafe for ListMembershipsResponse
impl Send for ListMembershipsResponse
impl Sync for ListMembershipsResponse
impl Unpin for ListMembershipsResponse
impl UnsafeUnpin for ListMembershipsResponse
impl UnwindSafe for ListMembershipsResponse
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