pub struct PostgresEnumEntity {
pub name: &'static str,
pub file: &'static str,
pub line: u32,
pub full_path: &'static str,
pub module_path: &'static str,
pub mappings: BTreeSet<RustSqlMapping>,
pub variants: Vec<&'static str>,
pub to_sql_config: ToSqlConfigEntity,
}
Expand description
The output of a PostgresEnum
from quote::ToTokens::to_tokens
.
Fields§
§name: &'static str
§file: &'static str
§line: u32
§full_path: &'static str
§module_path: &'static str
§mappings: BTreeSet<RustSqlMapping>
§variants: Vec<&'static str>
§to_sql_config: ToSqlConfigEntity
Implementations§
source§impl PostgresEnumEntity
impl PostgresEnumEntity
pub fn id_matches(&self, candidate: &TypeId) -> bool
Trait Implementations§
source§impl Clone for PostgresEnumEntity
impl Clone for PostgresEnumEntity
source§fn clone(&self) -> PostgresEnumEntity
fn clone(&self) -> PostgresEnumEntity
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 PostgresEnumEntity
impl Debug for PostgresEnumEntity
source§impl From<PostgresEnumEntity> for SqlGraphEntity
impl From<PostgresEnumEntity> for SqlGraphEntity
source§fn from(val: PostgresEnumEntity) -> Self
fn from(val: PostgresEnumEntity) -> Self
Converts to this type from the input type.
source§impl Hash for PostgresEnumEntity
impl Hash for PostgresEnumEntity
source§impl Ord for PostgresEnumEntity
impl Ord for PostgresEnumEntity
source§fn cmp(&self, other: &PostgresEnumEntity) -> Ordering
fn cmp(&self, other: &PostgresEnumEntity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PostgresEnumEntity
impl PartialEq for PostgresEnumEntity
source§fn eq(&self, other: &PostgresEnumEntity) -> bool
fn eq(&self, other: &PostgresEnumEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PostgresEnumEntity
impl PartialOrd for PostgresEnumEntity
source§fn partial_cmp(&self, other: &PostgresEnumEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &PostgresEnumEntity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToSql for PostgresEnumEntity
impl ToSql for PostgresEnumEntity
impl Eq for PostgresEnumEntity
impl StructuralPartialEq for PostgresEnumEntity
Auto Trait Implementations§
impl Freeze for PostgresEnumEntity
impl RefUnwindSafe for PostgresEnumEntity
impl Send for PostgresEnumEntity
impl Sync for PostgresEnumEntity
impl Unpin for PostgresEnumEntity
impl UnwindSafe for PostgresEnumEntity
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.