pub enum PrimaryKey {
Id,
}Available on crate feature
rbac only.Expand description
Generated by sea-orm-macros
Variantsยง
Id
Generated by sea-orm-macros
Trait Implementationsยง
Sourceยงimpl Clone for PrimaryKey
impl Clone for PrimaryKey
Sourceยงfn clone(&self) -> PrimaryKey
fn clone(&self) -> PrimaryKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrimaryKey
Sourceยงimpl Debug for PrimaryKey
impl Debug for PrimaryKey
Sourceยงimpl Iden for PrimaryKey
impl Iden for PrimaryKey
Sourceยงimpl IdenStatic for PrimaryKey
impl IdenStatic for PrimaryKey
Sourceยงimpl IntoEnumIterator for PrimaryKey
impl IntoEnumIterator for PrimaryKey
type Iterator = PrimaryKeyIter
fn iter() -> PrimaryKeyIter โ
Sourceยงimpl PrimaryKeyToColumn for PrimaryKey
impl PrimaryKeyToColumn for PrimaryKey
Sourceยงimpl PrimaryKeyTrait for PrimaryKey
impl PrimaryKeyTrait for PrimaryKey
Sourceยงtype ValueType = ResourceId
type ValueType = ResourceId
Rust type of the primary-key value. A single column is its own type
(e.g.
i32); composite keys use a tuple (e.g. (i32, String)).Sourceยงfn auto_increment() -> bool
fn auto_increment() -> bool
true if the database generates the primary key (e.g. SERIAL /
IDENTITY / AUTOINCREMENT). Auto-increment keys can be left as
NotSet on insert.Auto Trait Implementationsยง
impl Freeze for PrimaryKey
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnsafeUnpin for PrimaryKey
impl UnwindSafe for PrimaryKey
Blanket Implementationsยง
impl<T> Allocation for T
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,
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> IntoColumnRef for T
impl<T> IntoColumnRef for T
fn into_column_ref(self) -> ColumnRef
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> IntoIdentity for Twhere
T: IdenStatic,
impl<T> IntoIdentity for Twhere
T: IdenStatic,
Sourceยงfn into_identity(self) -> Identity
fn into_identity(self) -> Identity
Build the
Identity.