pub struct PostgresEnumEntity<'a> {
pub name: &'a str,
pub file: &'a str,
pub line: u32,
pub full_path: &'a str,
pub module_path: &'a str,
pub type_ident: &'a str,
pub variants: Vec<&'a str>,
pub to_sql_config: ToSqlConfigEntity<'a>,
}Expand description
The output of a PostgresEnum from quote::ToTokens::to_tokens.
Fields§
§name: &'a str§file: &'a str§line: u32§full_path: &'a str§module_path: &'a str§type_ident: &'a str§variants: Vec<&'a str>§to_sql_config: ToSqlConfigEntity<'a>Trait Implementations§
Source§impl<'a> Clone for PostgresEnumEntity<'a>
impl<'a> Clone for PostgresEnumEntity<'a>
Source§fn clone(&self) -> PostgresEnumEntity<'a>
fn clone(&self) -> PostgresEnumEntity<'a>
Returns a duplicate 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<'a> Debug for PostgresEnumEntity<'a>
impl<'a> Debug for PostgresEnumEntity<'a>
Source§impl<'a> From<PostgresEnumEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PostgresEnumEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PostgresEnumEntity<'a>) -> Self
fn from(val: PostgresEnumEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for PostgresEnumEntity<'a>
impl<'a> Hash for PostgresEnumEntity<'a>
Source§impl<'a> Ord for PostgresEnumEntity<'a>
impl<'a> Ord for PostgresEnumEntity<'a>
Source§fn cmp(&self, other: &PostgresEnumEntity<'a>) -> Ordering
fn cmp(&self, other: &PostgresEnumEntity<'a>) -> 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<'a> PartialEq for PostgresEnumEntity<'a>
impl<'a> PartialEq for PostgresEnumEntity<'a>
Source§impl<'a> PartialOrd for PostgresEnumEntity<'a>
impl<'a> PartialOrd for PostgresEnumEntity<'a>
Source§impl SqlGraphIdentifier for PostgresEnumEntity<'_>
impl SqlGraphIdentifier for PostgresEnumEntity<'_>
Source§impl ToSql for PostgresEnumEntity<'_>
impl ToSql for PostgresEnumEntity<'_>
Source§impl TypeMatch for PostgresEnumEntity<'_>
impl TypeMatch for PostgresEnumEntity<'_>
fn type_ident(&self) -> &str
fn matches_type_ident(&self, arg: &str) -> bool
impl<'a> Eq for PostgresEnumEntity<'a>
impl<'a> StructuralPartialEq for PostgresEnumEntity<'a>
Auto Trait Implementations§
impl<'a> Freeze for PostgresEnumEntity<'a>
impl<'a> RefUnwindSafe for PostgresEnumEntity<'a>
impl<'a> Send for PostgresEnumEntity<'a>
impl<'a> Sync for PostgresEnumEntity<'a>
impl<'a> Unpin for PostgresEnumEntity<'a>
impl<'a> UnsafeUnpin for PostgresEnumEntity<'a>
impl<'a> UnwindSafe for PostgresEnumEntity<'a>
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.