gapirs-drive-v3 0.0.1

Rust library for Google API drive v0.0.1
Documentation
// This file was generated by code-gen. DO NOT EDIT MANUALLY! 

///A restriction for accessing the content of the file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct ContentRestriction {
    #[serde(rename = "ownerRestricted")]
    ///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.
    pub owner_restricted: ::core::primitive::bool,
    #[serde(rename = "readOnly")]
    ///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.
    pub read_only: ::core::primitive::bool,
    #[serde(rename = "reason")]
    ///Reason for why the content of the file is restricted. This is only mutable on requests that also set `readOnly=true`.
    pub reason: ::alloc::string::String,
    #[serde(rename = "restrictingUser")]
    pub restricting_user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
    #[serde(rename = "restrictionTime")]
    ///The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
    pub restriction_time: ::alloc::string::String,
    #[serde(rename = "systemRestricted")]
    ///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.
    pub system_restricted: ::core::primitive::bool,
    #[serde(rename = "type")]
    ///Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
    pub type_: ::alloc::string::String,
}
///A restriction for accessing the content of the file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ContentRestrictionPartial {
    #[serde(rename = "ownerRestricted")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///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.
    pub owner_restricted: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "readOnly")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///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.
    pub read_only: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "reason")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Reason for why the content of the file is restricted. This is only mutable on requests that also set `readOnly=true`.
    pub reason: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "restrictingUser")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub restricting_user: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
    >,
    #[serde(rename = "restrictionTime")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
    pub restriction_time: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "systemRestricted")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///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.
    pub system_restricted: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.
    pub type_: ::core::option::Option<::alloc::string::String>,
}