pub struct SharingControlPlane { /* private fields */ }Expand description
A deterministic authorization/control-plane model.
It accepts no relationship graph by design: relationships and workspace nesting cannot accidentally become authorization inputs.
Implementations§
Source§impl SharingControlPlane
impl SharingControlPlane
pub fn new() -> Self
pub fn register_folderbase( &mut self, registration: FolderbaseRegistration, ) -> Result<()>
pub fn create_grant( &mut self, owner_member_id: &str, folderbase_id: &str, grantee_member_id: impl Into<String>, scope: ShareScope, permissions: BTreeSet<SharePermission>, expires_at: Option<DateTime<Utc>>, include_future_content: bool, ) -> Result<ShareGrant>
pub fn revoke( &mut self, owner_member_id: &str, grant_id: &str, at: DateTime<Utc>, ) -> Result<()>
Trait Implementations§
Source§impl Debug for SharingControlPlane
impl Debug for SharingControlPlane
Source§impl Default for SharingControlPlane
impl Default for SharingControlPlane
Source§fn default() -> SharingControlPlane
fn default() -> SharingControlPlane
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SharingControlPlane
impl RefUnwindSafe for SharingControlPlane
impl Send for SharingControlPlane
impl Sync for SharingControlPlane
impl Unpin for SharingControlPlane
impl UnsafeUnpin for SharingControlPlane
impl UnwindSafe for SharingControlPlane
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