pub struct MembershipRelation {
pub description: Option<String>,
pub display_name: Option<String>,
pub group: Option<String>,
pub group_key: Option<EntityKey>,
pub labels: Option<HashMap<String, String>>,
pub membership: Option<String>,
pub roles: Option<Vec<MembershipRole>>,
}Expand description
Message containing membership relation.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>An extended description to help users determine the purpose of a Group.
display_name: Option<String>The display name of the Group.
group: Option<String>The resource name of the Group. Shall be of the form groups/{group_id}.
group_key: Option<EntityKey>The EntityKey of the Group.
labels: Option<HashMap<String, String>>One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value.
membership: Option<String>The resource name of the Membership. Shall be of the form groups/{group_id}/memberships/{membership_id}.
roles: Option<Vec<MembershipRole>>The MembershipRoles that apply to the Membership.
Trait Implementations§
Source§impl Clone for MembershipRelation
impl Clone for MembershipRelation
Source§fn clone(&self) -> MembershipRelation
fn clone(&self) -> MembershipRelation
Returns a duplicate of the value. Read more
1.0.0 · 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 MembershipRelation
impl Debug for MembershipRelation
Source§impl Default for MembershipRelation
impl Default for MembershipRelation
Source§fn default() -> MembershipRelation
fn default() -> MembershipRelation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MembershipRelation
impl<'de> Deserialize<'de> for MembershipRelation
Source§fn 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
Source§impl Serialize for MembershipRelation
impl Serialize for MembershipRelation
impl Part for MembershipRelation
Auto Trait Implementations§
impl Freeze for MembershipRelation
impl RefUnwindSafe for MembershipRelation
impl Send for MembershipRelation
impl Sync for MembershipRelation
impl Unpin for MembershipRelation
impl UnwindSafe for MembershipRelation
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