Struct google_drive::types::ContentRestriction
source · pub struct ContentRestriction {
pub read_only: Option<bool>,
pub reason: String,
pub restricting_user: Option<User>,
pub restriction_time: Option<DateTime<Utc>>,
pub type_: String,
}Expand description
A restriction for accessing the content of the file.
Fields§
§read_only: Option<bool>A restriction for accessing the content of the file.
reason: StringA restriction for accessing the content of the file.
restricting_user: Option<User>A restriction for accessing the content of the file.
restriction_time: Option<DateTime<Utc>>A restriction for accessing the content of the file.
type_: StringA restriction for accessing the content of the file.
Trait Implementations§
source§impl Clone for ContentRestriction
impl Clone for ContentRestriction
source§fn clone(&self) -> ContentRestriction
fn clone(&self) -> ContentRestriction
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 ContentRestriction
impl Debug for ContentRestriction
source§impl<'de> Deserialize<'de> for ContentRestriction
impl<'de> Deserialize<'de> for ContentRestriction
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 ContentRestriction
impl JsonSchema for ContentRestriction
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<ContentRestriction> for ContentRestriction
impl PartialEq<ContentRestriction> for ContentRestriction
source§fn eq(&self, other: &ContentRestriction) -> bool
fn eq(&self, other: &ContentRestriction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.