pub struct ExtensionSqlEntity {
pub module_path: &'static str,
pub full_path: &'static str,
pub sql: &'static str,
pub file: &'static str,
pub line: u32,
pub name: &'static str,
pub bootstrap: bool,
pub finalize: bool,
pub requires: Vec<PositioningRef>,
pub creates: Vec<SqlDeclaredEntity>,
}
Expand description
The output of a ExtensionSql
from quote::ToTokens::to_tokens
.
Fields§
§module_path: &'static str
§full_path: &'static str
§sql: &'static str
§file: &'static str
§line: u32
§name: &'static str
§bootstrap: bool
§finalize: bool
§requires: Vec<PositioningRef>
§creates: Vec<SqlDeclaredEntity>
Implementations§
source§impl ExtensionSqlEntity
impl ExtensionSqlEntity
pub fn has_sql_declared_entity( &self, identifier: &SqlDeclared ) -> Option<&SqlDeclaredEntity>
Trait Implementations§
source§impl Clone for ExtensionSqlEntity
impl Clone for ExtensionSqlEntity
source§fn clone(&self) -> ExtensionSqlEntity
fn clone(&self) -> ExtensionSqlEntity
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 ExtensionSqlEntity
impl Debug for ExtensionSqlEntity
source§impl From<ExtensionSqlEntity> for SqlGraphEntity
impl From<ExtensionSqlEntity> for SqlGraphEntity
source§fn from(val: ExtensionSqlEntity) -> Self
fn from(val: ExtensionSqlEntity) -> Self
Converts to this type from the input type.
source§impl Hash for ExtensionSqlEntity
impl Hash for ExtensionSqlEntity
source§impl Ord for ExtensionSqlEntity
impl Ord for ExtensionSqlEntity
source§fn cmp(&self, other: &ExtensionSqlEntity) -> Ordering
fn cmp(&self, other: &ExtensionSqlEntity) -> 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 ExtensionSqlEntity
impl PartialEq for ExtensionSqlEntity
source§fn eq(&self, other: &ExtensionSqlEntity) -> bool
fn eq(&self, other: &ExtensionSqlEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExtensionSqlEntity
impl PartialOrd for ExtensionSqlEntity
source§fn partial_cmp(&self, other: &ExtensionSqlEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtensionSqlEntity) -> 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 ExtensionSqlEntity
impl ToSql for ExtensionSqlEntity
impl Eq for ExtensionSqlEntity
impl StructuralPartialEq for ExtensionSqlEntity
Auto Trait Implementations§
impl Freeze for ExtensionSqlEntity
impl RefUnwindSafe for ExtensionSqlEntity
impl Send for ExtensionSqlEntity
impl Sync for ExtensionSqlEntity
impl Unpin for ExtensionSqlEntity
impl UnwindSafe for ExtensionSqlEntity
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.