pub struct ContentRestriction {
pub owner_restricted: Option<bool>,
pub read_only: Option<bool>,
pub reason: Option<String>,
pub restricting_user: Option<User>,
pub restriction_time: Option<DateTime<Utc>>,
pub system_restricted: Option<bool>,
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§
§owner_restricted: Option<bool>
Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with organizer
capabilities can modify or remove this content restriction.
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>
Output only. The user who set the content restriction. Only populated if readOnly
is true.
restriction_time: Option<DateTime<Utc>>
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
system_restricted: Option<bool>
Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
type_: Option<String>
Output only. The type of the content restriction. Currently the only possible value is globalContentRestriction
.
Trait Implementations§
Source§impl Clone for ContentRestriction
impl Clone for ContentRestriction
Source§fn clone(&self) -> ContentRestriction
fn clone(&self) -> ContentRestriction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ContentRestriction
impl Debug for ContentRestriction
Source§impl Default for ContentRestriction
impl Default for ContentRestriction
Source§fn default() -> ContentRestriction
fn default() -> 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>,
Source§impl Serialize for ContentRestriction
impl Serialize for ContentRestriction
impl Part for ContentRestriction
Auto Trait Implementations§
impl Freeze for ContentRestriction
impl RefUnwindSafe for ContentRestriction
impl Send for ContentRestriction
impl Sync for ContentRestriction
impl Unpin for ContentRestriction
impl UnwindSafe for ContentRestriction
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