Enum collab2::db::ChannelRole
source · pub enum ChannelRole {
Admin,
Member,
Guest,
Banned,
}
Variants§
Implementations§
source§impl ChannelRole
impl ChannelRole
sourcepub fn iden_values() -> Vec<DynIden>
pub fn iden_values() -> Vec<DynIden>
Generated by sea-orm-macros
source§impl ChannelRole
impl ChannelRole
pub fn should_override(&self, other: Self) -> bool
pub fn max(&self, other: Self) -> Self
pub fn can_see_all_descendants(&self) -> bool
pub fn can_only_see_public_descendants(&self) -> bool
Trait Implementations§
source§impl ActiveEnum for ChannelRole
impl ActiveEnum for ChannelRole
source§fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
Try to convert the corresponding value into enum variant.
§fn into_value(self) -> Self::Value
fn into_value(self) -> Self::Value
Convert an owned enum variant into the corresponding value.
source§impl Clone for ChannelRole
impl Clone for ChannelRole
source§fn clone(&self) -> ChannelRole
fn clone(&self) -> ChannelRole
Returns a copy 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 ChannelRole
impl Debug for ChannelRole
source§impl Default for ChannelRole
impl Default for ChannelRole
source§fn default() -> ChannelRole
fn default() -> ChannelRole
Returns the “default value” for a type. Read more
source§impl From<ChannelRole> for ChannelRole
impl From<ChannelRole> for ChannelRole
source§impl Hash for ChannelRole
impl Hash for ChannelRole
source§impl Into<ChannelRole> for ChannelRole
impl Into<ChannelRole> for ChannelRole
source§impl Into<Value> for ChannelRole
impl Into<Value> for ChannelRole
source§impl Into<i32> for ChannelRole
impl Into<i32> for ChannelRole
source§impl IntoEnumIterator for ChannelRole
impl IntoEnumIterator for ChannelRole
type Iterator = ChannelRoleIter
fn iter() -> ChannelRoleIter ⓘ
source§impl PartialEq<ChannelRole> for ChannelRole
impl PartialEq<ChannelRole> for ChannelRole
source§fn eq(&self, other: &ChannelRole) -> bool
fn eq(&self, other: &ChannelRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryGetable for ChannelRole
impl TryGetable for ChannelRole
source§fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
§fn try_get_by_index(
res: &QueryResult,
index: usize
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
source§impl ValueType for ChannelRole
impl ValueType for ChannelRole
impl Copy for ChannelRole
impl Eq for ChannelRole
impl NotU8 for ChannelRole
impl StructuralEq for ChannelRole
impl StructuralPartialEq for ChannelRole
Auto Trait Implementations§
impl RefUnwindSafe for ChannelRole
impl Send for ChannelRole
impl Sync for ChannelRole
impl Unpin for ChannelRole
impl UnwindSafe for ChannelRole
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
impl<V> FromValueTuple for Vwhere V: Into<Value> + ValueType,
fn from_value_tuple<I>(i: I) -> Vwhere I: IntoValueTuple,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<V> IntoValueTuple for Vwhere
V: Into<Value>,
impl<V> IntoValueTuple for Vwhere V: Into<Value>,
fn into_value_tuple(self) -> ValueTuple
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> TryFromU64 for Twhere
T: ActiveEnum,
impl<T> TryFromU64 for Twhere T: ActiveEnum,
§fn try_from_u64(_: u64) -> Result<T, DbErr>
fn try_from_u64(_: u64) -> Result<T, DbErr>
The method to convert the type to a u64
§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere T: TryGetable,
§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String]
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String] ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions