Enum ormlite_attr::TType
source · pub enum TType {
Option(Box<TType>),
Vec(Box<TType>),
Inner(InnerType),
Join(Box<TType>),
}Expand description
Token type. A rust AST token, representing a type.
Variants§
Option(Box<TType>)
Vec(Box<TType>)
Inner(InnerType)
Database primitive, includes DateTime, Jsonb, etc.
Join(Box<TType>)
Implementations§
source§impl TType
impl TType
pub fn joined_type(&self) -> Option<&TType>
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 PartialEq for TType
impl PartialEq for TType
source§impl ToTokens for TType
impl ToTokens for TType
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 TType
Auto Trait Implementations§
impl RefUnwindSafe for TType
impl Send for TType
impl Sync for TType
impl Unpin for TType
impl UnwindSafe for TType
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> 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>
§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.