pub enum TypeOrigin {
ThisExtension,
External,
}Expand description
Describes whether a SQL type reference should resolve to schema emitted by this extension or be treated as an external SQL type.
Variants§
ThisExtension
The extension being built is responsible for emitting this type into the schema graph.
External
The type already exists outside this extension’s schema graph.
Trait Implementations§
Source§impl Clone for TypeOrigin
impl Clone for TypeOrigin
Source§fn clone(&self) -> TypeOrigin
fn clone(&self) -> TypeOrigin
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 Debug for TypeOrigin
impl Debug for TypeOrigin
Source§impl Hash for TypeOrigin
impl Hash for TypeOrigin
Source§impl Ord for TypeOrigin
impl Ord for TypeOrigin
Source§fn cmp(&self, other: &TypeOrigin) -> Ordering
fn cmp(&self, other: &TypeOrigin) -> 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 TypeOrigin
impl PartialEq for TypeOrigin
Source§impl PartialOrd for TypeOrigin
impl PartialOrd for TypeOrigin
impl Copy for TypeOrigin
impl Eq for TypeOrigin
impl StructuralPartialEq for TypeOrigin
Auto Trait Implementations§
impl Freeze for TypeOrigin
impl RefUnwindSafe for TypeOrigin
impl Send for TypeOrigin
impl Sync for TypeOrigin
impl Unpin for TypeOrigin
impl UnsafeUnpin for TypeOrigin
impl UnwindSafe for TypeOrigin
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.