pub struct Permission {Show 14 fields
pub allow_file_discovery: Option<bool>,
pub deleted: Option<bool>,
pub display_name: String,
pub domain: String,
pub email_address: String,
pub expiration_time: Option<DateTime<Utc>>,
pub id: String,
pub kind: String,
pub permission_details: Vec<PermissionDetails>,
pub photo_link: String,
pub role: String,
pub team_drive_permission_details: Vec<TeamDrivePermissionDetails>,
pub type_: String,
pub view: String,
}Expand description
A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
Fields§
§allow_file_discovery: Option<bool>A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
deleted: Option<bool>A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
display_name: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
domain: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
email_address: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
expiration_time: Option<DateTime<Utc>>A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
id: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
kind: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
permission_details: Vec<PermissionDetails>A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
photo_link: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
role: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
team_drive_permission_details: Vec<TeamDrivePermissionDetails>A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
type_: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
view: StringA permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
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<'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 JsonSchema for Permission
impl JsonSchema for Permission
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for Permission
impl PartialEq for Permission
Source§impl Serialize for Permission
impl Serialize for Permission
impl StructuralPartialEq 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