pub struct Permission {
pub deleted: Option<bool>,
pub email: Option<String>,
pub family: Option<Family>,
pub group: Option<Group>,
pub name: Option<String>,
pub role: Option<String>,
pub user: Option<User>,
}
Expand description
A single permission on the note. Associates a member
with a role
.
This type is not used in any activity, and only used as part of another schema.
Fields§
§deleted: Option<bool>
Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note.
email: Option<String>
The email associated with the member. If set on create, the email
field in the User
or Group
message must either be empty or match this field. On read, may be unset if the member does not have an associated email.
family: Option<Family>
Output only. The Google Family to which this role applies.
group: Option<Group>
Output only. The group to which this role applies.
name: Option<String>
Output only. The resource name.
role: Option<String>
The role granted by this permission. The role determines the entity’s ability to read, write, and share notes.
user: Option<User>
Output only. The user to whom this role applies.
Trait Implementations§
Source§impl Clone for Permission
impl Clone for Permission
Source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Permission
impl Debug for Permission
Source§impl Default for Permission
impl Default for Permission
Source§fn default() -> Permission
fn default() -> Permission
Source§impl<'de> Deserialize<'de> for Permission
impl<'de> Deserialize<'de> for Permission
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>,
Source§impl Serialize for Permission
impl Serialize for Permission
impl Part for Permission
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more