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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.