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
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§impl PartialOrd for PostgresEnumEntity
impl PartialOrd for PostgresEnumEntity
Source§impl ToSql for PostgresEnumEntity
impl ToSql for PostgresEnumEntity
Source§impl TypeMatch for PostgresEnumEntity
impl TypeMatch for PostgresEnumEntity
fn id_matches(&self, candidate: &TypeId) -> bool
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.