pub enum WorkspaceAccessPolicy {
Open,
Permission(PermissionString),
InviteOnly,
Locked,
}Expand description
Access control policy for the workspace.
Variants§
Open
Anyone can enter.
Permission(PermissionString)
Only clients holding the specified PermissionString token can enter.
The token is replicated verbatim in the wire format and is guaranteed
not to exceed MAX_WORKSPACE_STRING_BYTES bytes.
InviteOnly
Only explicitly invited clients can enter.
Locked
Locked — no one can enter.
Trait Implementations§
Source§impl Clone for WorkspaceAccessPolicy
impl Clone for WorkspaceAccessPolicy
Source§fn clone(&self) -> WorkspaceAccessPolicy
fn clone(&self) -> WorkspaceAccessPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceAccessPolicy
impl Debug for WorkspaceAccessPolicy
Source§impl<'de> Deserialize<'de> for WorkspaceAccessPolicy
impl<'de> Deserialize<'de> for WorkspaceAccessPolicy
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 PartialEq for WorkspaceAccessPolicy
impl PartialEq for WorkspaceAccessPolicy
Source§fn eq(&self, other: &WorkspaceAccessPolicy) -> bool
fn eq(&self, other: &WorkspaceAccessPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceAccessPolicy
impl Serialize for WorkspaceAccessPolicy
impl Eq for WorkspaceAccessPolicy
impl StructuralPartialEq for WorkspaceAccessPolicy
Auto Trait Implementations§
impl Freeze for WorkspaceAccessPolicy
impl RefUnwindSafe for WorkspaceAccessPolicy
impl Send for WorkspaceAccessPolicy
impl Sync for WorkspaceAccessPolicy
impl Unpin for WorkspaceAccessPolicy
impl UnsafeUnpin for WorkspaceAccessPolicy
impl UnwindSafe for WorkspaceAccessPolicy
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