pub struct ColumnOptions {
pub primary_key: bool,
pub nullable: bool,
pub unique: bool,
pub auto_increment: bool,
}Expand description
Column options for table creation.
Fields§
§primary_key: bool§nullable: bool§unique: bool§auto_increment: boolImplementations§
Source§impl ColumnOptions
impl ColumnOptions
pub fn new() -> Self
pub fn set_primary_key(self, value: bool) -> Self
pub fn set_nullable(self, value: bool) -> Self
pub fn set_unique(self, value: bool) -> Self
pub fn set_auto_increment(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for ColumnOptions
impl Clone for ColumnOptions
Source§fn clone(&self) -> ColumnOptions
fn clone(&self) -> ColumnOptions
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 Debug for ColumnOptions
impl Debug for ColumnOptions
Source§impl Default for ColumnOptions
impl Default for ColumnOptions
Source§fn default() -> ColumnOptions
fn default() -> ColumnOptions
Returns the “default value” for a type. Read more
Source§impl From<ColumnOptions> for JsValue
impl From<ColumnOptions> for JsValue
Source§fn from(value: ColumnOptions) -> Self
fn from(value: ColumnOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ColumnOptions
impl FromWasmAbi for ColumnOptions
Source§impl IntoWasmAbi for ColumnOptions
impl IntoWasmAbi for ColumnOptions
Source§impl LongRefFromWasmAbi for ColumnOptions
impl LongRefFromWasmAbi for ColumnOptions
Source§impl OptionFromWasmAbi for ColumnOptions
impl OptionFromWasmAbi for ColumnOptions
Source§impl OptionIntoWasmAbi for ColumnOptions
impl OptionIntoWasmAbi for ColumnOptions
Source§impl RefFromWasmAbi for ColumnOptions
impl RefFromWasmAbi for ColumnOptions
Source§type Anchor = RcRef<ColumnOptions>
type Anchor = RcRef<ColumnOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ColumnOptions
impl RefMutFromWasmAbi for ColumnOptions
Source§impl TryFromJsValue for ColumnOptions
impl TryFromJsValue for ColumnOptions
Source§impl VectorFromWasmAbi for ColumnOptions
impl VectorFromWasmAbi for ColumnOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ColumnOptions]>
Source§impl VectorIntoWasmAbi for ColumnOptions
impl VectorIntoWasmAbi for ColumnOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ColumnOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ColumnOptions
impl WasmDescribeVector for ColumnOptions
impl SupportsConstructor for ColumnOptions
impl SupportsInstanceProperty for ColumnOptions
impl SupportsStaticProperty for ColumnOptions
Auto Trait Implementations§
impl Freeze for ColumnOptions
impl RefUnwindSafe for ColumnOptions
impl Send for ColumnOptions
impl Sync for ColumnOptions
impl Unpin for ColumnOptions
impl UnwindSafe for ColumnOptions
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.