[][src]Struct squawk_parser::ast::Constraint

pub struct Constraint {
    pub contype: ConstrType,
    pub location: i32,
    pub raw_expr: Option<Value>,
    pub keys: Option<Value>,
    pub indexname: Option<String>,
    pub skip_validation: bool,
    pub initially_valid: bool,
}

Fields

contype: ConstrTypelocation: i32

token location, or -1 if unknown

raw_expr: Option<Value>

expr, as untransformed parse tree

keys: Option<Value>

String nodes naming referenced column(s)

indexname: Option<String>

existing index to use; otherwise NULL

skip_validation: bool

skip validation of existing rows?

initially_valid: bool

mark the new constraint as valid?

Trait Implementations

impl Debug for Constraint[src]

impl<'de> Deserialize<'de> for Constraint[src]

impl Serialize for Constraint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.