Struct google_drive::types::Restrictions
source · pub struct Restrictions {
pub admin_managed_restrictions: Option<bool>,
pub copy_requires_writer_permission: Option<bool>,
pub domain_users_only: Option<bool>,
pub drive_members_only: Option<bool>,
}Expand description
A set of restrictions that apply to this shared drive or items inside this shared drive.
Fields§
§admin_managed_restrictions: Option<bool>A set of restrictions that apply to this shared drive or items inside this shared drive.
copy_requires_writer_permission: Option<bool>A set of restrictions that apply to this shared drive or items inside this shared drive.
domain_users_only: Option<bool>A set of restrictions that apply to this shared drive or items inside this shared drive.
drive_members_only: Option<bool>A set of restrictions that apply to this shared drive or items inside this shared drive.
Trait Implementations§
source§impl Clone for Restrictions
impl Clone for Restrictions
source§fn clone(&self) -> Restrictions
fn clone(&self) -> Restrictions
Returns a copy 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 Restrictions
impl Debug for Restrictions
source§impl<'de> Deserialize<'de> for Restrictions
impl<'de> Deserialize<'de> for Restrictions
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 JsonSchema for Restrictions
impl JsonSchema for Restrictions
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq<Restrictions> for Restrictions
impl PartialEq<Restrictions> for Restrictions
source§fn eq(&self, other: &Restrictions) -> bool
fn eq(&self, other: &Restrictions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.