pub enum Type {
Option(Box<Type>),
Vec(Box<Type>),
Inner(InnerType),
Join(Box<Type>),
}Variants§
Option(Box<Type>)
Vec(Box<Type>)
Inner(InnerType)
Database primitive, includes DateTime, Jsonb, etc.
Join(Box<Type>)
Implementations§
Source§impl Type
impl Type
pub fn joined_type(&self) -> Option<&Type>
pub fn is_string(&self) -> bool
pub fn is_json(&self) -> bool
pub fn is_join(&self) -> bool
pub fn is_option(&self) -> bool
pub fn inner_type_name(&self) -> String
pub fn inner_type_mut(&mut self) -> &mut InnerType
pub fn inner_type(&self) -> &InnerType
pub fn qualified_inner_name(&self) -> TokenStream
Trait Implementations§
Source§impl ToTokens for Type
impl ToTokens for Type
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.