[][src]Struct stellar_sql::component::field::Field

pub struct Field {
    pub name: String,
    pub datatype: DataType,
    pub not_null: bool,
    pub default: Option<String>,
    pub check: Checker,
    pub encrypt: bool,
    uuid: String,
}

Fields

name: Stringdatatype: DataTypenot_null: booldefault: Option<String>check: Checkerencrypt: booluuid: String

Methods

impl Field[src]

pub fn new(name: &str, datatype: DataType) -> Field[src]

pub fn new_all(
    name: &str,
    datatype: DataType,
    not_null: bool,
    default: Option<String>,
    check: Checker,
    encrypt: bool
) -> Field
[src]

Trait Implementations

impl Clone for Field[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Field[src]

impl Serialize for Field[src]

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

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for Field

impl Sync for Field

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T