Struct google_drive2::api::ContentRestriction [−][src]
pub struct ContentRestriction {
pub read_only: Option<bool>,
pub reason: Option<String>,
pub restricting_user: Option<User>,
pub restriction_date: Option<String>,
pub type_: Option<String>,
}
Expand description
A restriction for accessing the content of the file.
This type is not used in any activity, and only used as part of another schema.
Fields
read_only: Option<bool>
Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
reason: Option<String>
Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
restricting_user: Option<User>
The user who set the content restriction. Only populated if readOnly is true.
restriction_date: Option<String>
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
type_: Option<String>
The type of the content restriction. Currently the only possible value is globalContentRestriction.
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for ContentRestriction
impl Send for ContentRestriction
impl Sync for ContentRestriction
impl Unpin for ContentRestriction
impl UnwindSafe for ContentRestriction
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more