#[repr(i32)]pub enum BoardRole {
ROLE_UNSPECIFIED = 0,
VIEWER = 1,
EDITOR = 2,
OWNER = 3,
}Expand description
BoardRole is the resolved capability level for a caller on a board.
Variants§
ROLE_UNSPECIFIED = 0
Role is not specified, which means the caller has no board access.
VIEWER = 1
Viewer can read board metadata and join the room as read-only.
EDITOR = 2
Editor can view and edit board content in the room.
OWNER = 3
Owner can view, edit, archive, and manage sharing settings.
Implementations§
Source§impl BoardRole
impl BoardRole
Sourcepub const RoleUnspecified: Self = Self::ROLE_UNSPECIFIED
pub const RoleUnspecified: Self = Self::ROLE_UNSPECIFIED
Idiomatic alias for Self::ROLE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Viewer: Self = Self::VIEWER
pub const Viewer: Self = Self::VIEWER
Idiomatic alias for Self::VIEWER; Debug prints the variant name.
Sourcepub const Editor: Self = Self::EDITOR
pub const Editor: Self = Self::EDITOR
Idiomatic alias for Self::EDITOR; Debug prints the variant name.
Sourcepub const Owner: Self = Self::OWNER
pub const Owner: Self = Self::OWNER
Idiomatic alias for Self::OWNER; Debug prints the variant name.
Trait Implementations§
impl Copy for BoardRole
Source§impl<'de> Deserialize<'de> for BoardRole
impl<'de> Deserialize<'de> for BoardRole
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for BoardRole
impl Enumeration for BoardRole
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for BoardRole
Source§impl ProtoElemJson for BoardRole
impl ProtoElemJson for BoardRole
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
impl StructuralPartialEq for BoardRole
Auto Trait Implementations§
impl Freeze for BoardRole
impl RefUnwindSafe for BoardRole
impl Send for BoardRole
impl Sync for BoardRole
impl Unpin for BoardRole
impl UnsafeUnpin for BoardRole
impl UnwindSafe for BoardRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.