Struct create_rust_app::auth::RolePermissionChangeset
source · pub struct RolePermissionChangeset {
pub role: String,
pub permission: String,
}
Expand description
Rust struct modeling mutable data in an entry in the role_permissions table
Fields§
§role: String
§permission: String
Trait Implementations§
source§impl<'update> AsChangeset for &'update RolePermissionChangeset
impl<'update> AsChangeset for &'update RolePermissionChangeset
§type Changeset = <(Grouped<Eq<role, <&'update String as AsExpression<<role as Expression>::SqlType>>::Expression>>, Grouped<Eq<permission, <&'update String as AsExpression<<permission as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<role, <&'update String as AsExpression<<role as Expression>::SqlType>>::Expression>>, Grouped<Eq<permission, <&'update String as AsExpression<<permission as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl AsChangeset for RolePermissionChangeset
impl AsChangeset for RolePermissionChangeset
§type Changeset = <(Grouped<Eq<role, <String as AsExpression<<role as Expression>::SqlType>>::Expression>>, Grouped<Eq<permission, <String as AsExpression<<permission as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<role, <String as AsExpression<<role as Expression>::SqlType>>::Expression>>, Grouped<Eq<permission, <String as AsExpression<<permission as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl Clone for RolePermissionChangeset
impl Clone for RolePermissionChangeset
source§fn clone(&self) -> RolePermissionChangeset
fn clone(&self) -> RolePermissionChangeset
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 RolePermissionChangeset
impl Debug for RolePermissionChangeset
source§impl<'de> Deserialize<'de> for RolePermissionChangeset
impl<'de> Deserialize<'de> for RolePermissionChangeset
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
Auto Trait Implementations§
impl RefUnwindSafe for RolePermissionChangeset
impl Send for RolePermissionChangeset
impl Sync for RolePermissionChangeset
impl Unpin for RolePermissionChangeset
impl UnwindSafe for RolePermissionChangeset
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
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>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more