pub struct AclSettings {
pub allow_copying: bool,
pub allow_editors_to_change_permissions: bool,
pub allow_viewers_to_request_editing: bool,
}
Expand description
Sharing settings for the doc.
JSON schema
{
"description": "Sharing settings for the doc.",
"type": "object",
"required": [
"allowCopying",
"allowEditorsToChangePermissions",
"allowViewersToRequestEditing"
],
"properties": {
"allowCopying": {
"description": "When true, allows doc viewers to copy the doc.",
"type": "boolean"
},
"allowEditorsToChangePermissions": {
"description": "When true, allows editors to change doc permissions. When false, only doc owner can change doc permissions.\n",
"type": "boolean"
},
"allowViewersToRequestEditing": {
"description": "When true, allows doc viewers to request editing
permissions.",
"type": "boolean"
}
},
"additionalProperties": false,
"x-schema-name": "AclSettings"
}
Fields§
§allow_copying: bool
When true, allows doc viewers to copy the doc.
allow_editors_to_change_permissions: bool
When true, allows editors to change doc permissions. When false, only doc owner can change doc permissions.
allow_viewers_to_request_editing: bool
When true, allows doc viewers to request editing permissions.
Trait Implementations§
Source§impl Clone for AclSettings
impl Clone for AclSettings
Source§fn clone(&self) -> AclSettings
fn clone(&self) -> AclSettings
Returns a duplicate 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 AclSettings
impl Debug for AclSettings
Source§impl<'de> Deserialize<'de> for AclSettings
impl<'de> Deserialize<'de> for AclSettings
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 From<&AclSettings> for AclSettings
impl From<&AclSettings> for AclSettings
Source§fn from(value: &AclSettings) -> Self
fn from(value: &AclSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AclSettings
impl RefUnwindSafe for AclSettings
impl Send for AclSettings
impl Sync for AclSettings
impl Unpin for AclSettings
impl UnwindSafe for AclSettings
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
Mutably borrows from an owned value. Read more