pub enum Roles {
Show 28 variants
Accountant,
Admin,
Approver,
BookingUser,
ContentManager,
DepAdmManager,
DistrictClerk,
DistrictManager,
Facilitator,
FederalClerk,
FederalMinister,
Guest,
HeadTeacher,
LabAssistant,
Librarian,
Parent,
Psychologist,
Pupil,
PupilsParent,
RegionalClerk,
RegionalMinister,
Minister,
Registered,
Student,
SuperAdmin,
RoboTeacher,
SchoolCam,
undefined,
}
Variants§
Accountant
Admin
Approver
BookingUser
ContentManager
DepAdmManager
DistrictClerk
DistrictManager
Facilitator
FederalClerk
FederalMinister
Guest
HeadTeacher
LabAssistant
Librarian
Parent
Psychologist
Pupil
PupilsParent
RegionalClerk
RegionalMinister
Minister
Registered
Student
SuperAdmin
RoboTeacher
SchoolCam
undefined
Trait Implementations§
Source§impl<'expr> AsExpression<Nullable<Text>> for &'expr Roles
impl<'expr> AsExpression<Nullable<Text>> for &'expr Roles
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl AsExpression<Nullable<Text>> for Roles
impl AsExpression<Nullable<Text>> for Roles
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl<'expr> AsExpression<Text> for &'expr Roles
impl<'expr> AsExpression<Text> for &'expr Roles
Source§type Expression = Bound<Text, &'expr Roles>
type Expression = Bound<Text, &'expr Roles>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl AsExpression<Text> for Roles
impl AsExpression<Text> for Roles
Source§type Expression = Bound<Text, Roles>
type Expression = Bound<Text, Roles>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl<'de> Deserialize<'de> for Roles
impl<'de> Deserialize<'de> for Roles
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<__ST, __DB> FromSqlRow<__ST, __DB> for Roles
impl<__ST, __DB> FromSqlRow<__ST, __DB> for Roles
Source§const FIELDS_NEEDED: usize = 1usize
const FIELDS_NEEDED: usize = 1usize
The number of fields that this type will consume. Must be equal to
the number of times you would call
row.take()
in build_from_row
impl StructuralPartialEq for Roles
Auto Trait Implementations§
impl Freeze for Roles
impl RefUnwindSafe for Roles
impl Send for Roles
impl Sync for Roles
impl Unpin for Roles
impl UnwindSafe for Roles
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more