pub struct SharingAccessor {
pub ty: SharingAccessorType,
pub account_id: B64Url,
pub name: String,
pub permissions: Vec<SharingAccessorPermission>,
}Expand description
A SharingAccessor represents a user or group and their access permissions with respect to an entity.
Fields§
§ty: SharingAccessorTypeIndicates the type of accessor for which permissions are defined.
Importers must ignore any SharingAccessor entries when this value is
SharingAccessorType::Unknown.
account_id: B64UrlThis member specifies the Account, identified by its Account::id,
that has been given access to the shared entity by the current exporting Account.
name: StringThis contains the accessor’s account name.
If Self::ty has the value SharingAccessorType::User this SHOULD be set to the
Account::username. If Self::ty has the value SharingAccessorType::Group
this SHOULD be set to the group’s name.
permissions: Vec<SharingAccessorPermission>The list of permissions that Account defined by Self::account_id has with respect
to access on the shared entity. Importers MUST ignore entries with value of
SharingAccessorPermission::Unknown. Importers MUST ignore any [`SharingAccessors=]
that have an empty permissions list, whether it’s been exported as empty or when it’s
empty as a result of ignoring all unknown entries.
Trait Implementations§
Source§impl Clone for SharingAccessor
impl Clone for SharingAccessor
Source§fn clone(&self) -> SharingAccessor
fn clone(&self) -> SharingAccessor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more