Struct google_chat1::Membership
source · pub struct Membership {
pub member: Option<User>,
pub state: Option<String>,
pub create_time: Option<String>,
pub name: Option<String>,
}
Expand description
Represents a membership relation in Hangouts Chat.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- members get spaces (response)
Fields
member: Option<User>
Member details.
state: Option<String>
State of the membership.
create_time: Option<String>
The creation time of the membership a.k.a the time at which the member joined the space, if applicable.
name: Option<String>
Resource name of the membership, in the form “spaces//members/”.
Example: spaces/AAAAMpdlehY/members/105115627578887013105
Trait Implementations
sourceimpl Clone for Membership
impl Clone for Membership
sourcefn clone(&self) -> Membership
fn clone(&self) -> Membership
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Membership
impl Debug for Membership
sourceimpl Default for Membership
impl Default for Membership
sourcefn default() -> Membership
fn default() -> Membership
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Membership
impl<'de> Deserialize<'de> for Membership
sourcefn 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
sourceimpl Serialize for Membership
impl Serialize for Membership
impl ResponseResult for Membership
Auto Trait Implementations
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnwindSafe for Membership
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more