pub struct IRStoreColumn {
pub name: String,
pub col_type: String,
pub primary_key: bool,
pub auto_increment: bool,
pub not_null: bool,
pub unique: bool,
pub default_value: String,
pub identity: bool,
}Expand description
§Fase 38.b (D1) — IR mirror of crate::store_schema::StoreColumn.
The serialized col_type is the canonical PascalCase name (e.g.
"Uuid", "Int", "Timestamptz").
Fields§
§name: String§col_type: String§primary_key: bool§auto_increment: bool§not_null: bool§unique: bool§default_value: String§identity: bool§Fase 38.x.c (D2, D5) — true iff the column is declared with
GENERATED ALWAYS AS IDENTITY or GENERATED BY DEFAULT AS IDENTITY. Distinct from auto_increment (legacy SERIAL via
nextval(...) default). skip_serializing_if keeps IR JSON
byte-identical to v1.38.2 for any column where identity = false.
Trait Implementations§
Source§impl Clone for IRStoreColumn
impl Clone for IRStoreColumn
Source§fn clone(&self) -> IRStoreColumn
fn clone(&self) -> IRStoreColumn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IRStoreColumn
impl Debug for IRStoreColumn
Source§impl Serialize for IRStoreColumn
impl Serialize for IRStoreColumn
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for IRStoreColumn
impl RefUnwindSafe for IRStoreColumn
impl Send for IRStoreColumn
impl Sync for IRStoreColumn
impl Unpin for IRStoreColumn
impl UnsafeUnpin for IRStoreColumn
impl UnwindSafe for IRStoreColumn
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.