pub enum SchemaItem<'a> {
Table(SchemaTable<'a>),
Enum(SchemaEnum<'a>),
Scalar(SchemaScalar<'a>),
Composite(SchemaComposite<'a>),
View(SchemaView<'a>),
}Variants§
Table(SchemaTable<'a>)
Enum(SchemaEnum<'a>)
Scalar(SchemaScalar<'a>)
Composite(SchemaComposite<'a>)
View(SchemaView<'a>)
Implementations§
Source§impl SchemaItem<'_>
impl SchemaItem<'_>
pub fn as_enum(&self) -> Option<SchemaEnum<'_>>
pub fn as_scalar(&self) -> Option<SchemaScalar<'_>>
pub fn as_composite(&self) -> Option<SchemaComposite<'_>>
pub fn as_table(&self) -> Option<SchemaTable<'_>>
pub fn as_type(&self) -> Option<SchemaType<'_>>
pub fn as_view(&self) -> Option<SchemaView<'_>>
pub fn schema(&self) -> &Schema
pub fn is_external(&self) -> bool
Trait Implementations§
Source§impl<'a> Clone for SchemaItem<'a>
impl<'a> Clone for SchemaItem<'a>
Source§fn clone(&self) -> SchemaItem<'a>
fn clone(&self) -> SchemaItem<'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 SchemaItem<'a>
impl<'a> Debug for SchemaItem<'a>
Source§impl HasDefaultDbName for SchemaItem<'_>
impl HasDefaultDbName for SchemaItem<'_>
Source§impl HasIdent for SchemaItem<'_>
impl HasIdent for SchemaItem<'_>
Source§impl IsIsomorph for SchemaItem<'_>
impl IsIsomorph for SchemaItem<'_>
impl<'a> Copy for SchemaItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaItem<'a>
impl<'a> RefUnwindSafe for SchemaItem<'a>
impl<'a> Send for SchemaItem<'a>
impl<'a> Sync for SchemaItem<'a>
impl<'a> Unpin for SchemaItem<'a>
impl<'a> UnwindSafe for SchemaItem<'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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more