Enum collab2::db::ChannelRole

source ·
pub enum ChannelRole {
    Admin,
    Member,
    Guest,
    Banned,
}

Variants§

§

Admin

§

Member

§

Guest

§

Banned

Implementations§

source§

impl ChannelRole

source

pub fn iden_values() -> Vec<DynIden>

Generated by sea-orm-macros

source§

impl ChannelRole

source

pub fn should_override(&self, other: Self) -> bool

source

pub fn max(&self, other: Self) -> Self

source

pub fn can_see_all_descendants(&self) -> bool

source

pub fn can_only_see_public_descendants(&self) -> bool

Trait Implementations§

source§

impl ActiveEnum for ChannelRole

§

type Value = String

Define the Rust type that each enum variant represents.
§

type ValueVec = Vec<String, Global>

Define the enum value in Vector type.
source§

fn name() -> DynIden

Get the name of enum
source§

fn to_value(&self) -> Self::Value

Convert enum variant into the corresponding value.
source§

fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>

Try to convert the corresponding value into enum variant.
source§

fn db_type() -> ColumnDef

Get the database column definition of this active enum.
§

fn into_value(self) -> Self::Value

Convert an owned enum variant into the corresponding value.
§

fn as_enum(&self) -> SimpleExpr

Construct a enum expression with casting
§

fn values() -> Vec<Self::Value, Global>

Get the name of all enum variants
source§

impl Clone for ChannelRole

source§

fn clone(&self) -> ChannelRole

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChannelRole

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ChannelRole

source§

fn default() -> ChannelRole

Returns the “default value” for a type. Read more
source§

impl From<ChannelRole> for ChannelRole

source§

fn from(value: ChannelRole) -> Self

Converts to this type from the input type.
source§

impl Hash for ChannelRole

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Into<ChannelRole> for ChannelRole

source§

fn into(self) -> ChannelRole

Converts this type into the (usually inferred) input type.
source§

impl Into<Value> for ChannelRole

source§

fn into(self) -> Value

Converts this type into the (usually inferred) input type.
source§

impl Into<i32> for ChannelRole

source§

fn into(self) -> i32

Converts this type into the (usually inferred) input type.
source§

impl IntoEnumIterator for ChannelRole

source§

impl Nullable for ChannelRole

source§

fn null() -> Value

source§

impl PartialEq<ChannelRole> for ChannelRole

source§

fn eq(&self, other: &ChannelRole) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryGetable for ChannelRole

source§

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>

Get a value from the query result with prefixed column name
§

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

source§

fn try_from(v: Value) -> Result<Self, ValueTypeErr>

source§

fn type_name() -> String

source§

fn array_type() -> ArrayType

source§

fn column_type() -> ColumnType

§

fn unwrap(v: Value) -> Self

§

fn expect(v: Value, msg: &str) -> Self

source§

impl Copy for ChannelRole

source§

impl Eq for ChannelRole

source§

impl NotU8 for ChannelRole

source§

impl StructuralEq for ChannelRole

source§

impl StructuralPartialEq for ChannelRole

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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,

source§

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,

§

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,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<V> IntoValueTuple for Vwhere V: Into<Value>,

§

fn into_value_tuple(self) -> ValueTuple

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T> TryFromU64 for Twhere T: ActiveEnum,

§

fn try_from_u64(_: u64) -> Result<T, DbErr>

The method to convert the type to a u64
§

impl<T> TryGetableMany for Twhere T: TryGetable,

§

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>

Get a tuple value from the query result based on the order in the select expressions
§

fn find_by_statement<C>( stmt: Statement ) -> SelectorRaw<SelectGetableValue<Self, C>>where C: IntoEnumIterator + Iden,

source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more