pub struct ResolvedColumn<'a>(/* private fields */);Expand description
Column with its resolved source
Implementations§
Source§impl<'a> ResolvedColumn<'a>
impl<'a> ResolvedColumn<'a>
pub fn new( identifier: Fragment<'a>, source: ResolvedSource<'a>, def: ColumnDef, ) -> Self
Sourcepub fn identifier(&self) -> &Fragment<'a>
pub fn identifier(&self) -> &Fragment<'a>
Get the identifier
Sourcepub fn source(&self) -> &ResolvedSource<'a>
pub fn source(&self) -> &ResolvedSource<'a>
Get the source
Sourcepub fn type_constraint(&self) -> &TypeConstraint
pub fn type_constraint(&self) -> &TypeConstraint
Get the type constraint of this column
Sourcepub fn column_type(&self) -> Type
pub fn column_type(&self) -> Type
Get the column type
Sourcepub fn policies(&self) -> Vec<ColumnPolicyKind>
pub fn policies(&self) -> Vec<ColumnPolicyKind>
Get the column policies
Sourcepub fn is_auto_increment(&self) -> bool
pub fn is_auto_increment(&self) -> bool
Check if column has auto increment
Sourcepub fn namespace(&self) -> Option<&ResolvedNamespace<'a>>
pub fn namespace(&self) -> Option<&ResolvedNamespace<'a>>
Get the namespace this column belongs to
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Get fully qualified name
Sourcepub fn to_static(&self) -> ResolvedColumn<'static>
pub fn to_static(&self) -> ResolvedColumn<'static>
Convert to owned version with ’static lifetime
Trait Implementations§
Source§impl<'a> Clone for ResolvedColumn<'a>
impl<'a> Clone for ResolvedColumn<'a>
Source§fn clone(&self) -> ResolvedColumn<'a>
fn clone(&self) -> ResolvedColumn<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ResolvedColumn<'a>
impl<'a> RefUnwindSafe for ResolvedColumn<'a>
impl<'a> Send for ResolvedColumn<'a>
impl<'a> Sync for ResolvedColumn<'a>
impl<'a> Unpin for ResolvedColumn<'a>
impl<'a> UnwindSafe for ResolvedColumn<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)