pub struct AclMetadata {
pub can_copy: bool,
pub can_share: bool,
pub can_share_with_org: bool,
pub can_share_with_workspace: bool,
}
Expand description
Doc level metadata associated with ACL.
JSON schema
{
"description": "Doc level metadata associated with ACL.",
"type": "object",
"required": [
"canCopy",
"canShare",
"canShareWithOrg",
"canShareWithWorkspace"
],
"properties": {
"canCopy": {
"description": "When true, the user of the api can copy the doc",
"type": "boolean"
},
"canShare": {
"description": "When true, the user of the api can share",
"type": "boolean"
},
"canShareWithOrg": {
"description": "When true, the user of the api can share with the
org",
"type": "boolean"
},
"canShareWithWorkspace": {
"description": "When true, the user of the api can share with the
workspace",
"type": "boolean"
}
},
"additionalProperties": false,
"x-schema-name": "Acl"
}
Fields§
§can_copy: bool
When true, the user of the api can copy the doc
When true, the user of the api can share
When true, the user of the api can share with the org
When true, the user of the api can share with the workspace
Trait Implementations§
Source§impl Clone for AclMetadata
impl Clone for AclMetadata
Source§fn clone(&self) -> AclMetadata
fn clone(&self) -> AclMetadata
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 AclMetadata
impl Debug for AclMetadata
Source§impl<'de> Deserialize<'de> for AclMetadata
impl<'de> Deserialize<'de> for AclMetadata
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<&AclMetadata> for AclMetadata
impl From<&AclMetadata> for AclMetadata
Source§fn from(value: &AclMetadata) -> Self
fn from(value: &AclMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AclMetadata
impl RefUnwindSafe for AclMetadata
impl Send for AclMetadata
impl Sync for AclMetadata
impl Unpin for AclMetadata
impl UnwindSafe for AclMetadata
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