Struct ReplicatedColumn
pub struct ReplicatedColumn {
pub name: String,
pub declared_type: String,
pub value_type: ValueType,
pub nullable: bool,
}Expand description
One column accepted by the replicated-SQL schema envelope.
This is the public/introspection counterpart to the engine-private ColumnDef
(rindle_sqlite) — deliberately not an intra-doc link: this module carries no dependency
on the SQLite backend, and must not acquire one.
The write master uses the same declared-type mapping as followers instead of
maintaining a subtly different copy of the schema rules.
Fields§
§name: String§declared_type: String§value_type: ValueType§nullable: boolTrait Implementations§
§impl Clone for ReplicatedColumn
impl Clone for ReplicatedColumn
§fn clone(&self) -> ReplicatedColumn
fn clone(&self) -> ReplicatedColumn
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 more§impl Debug for ReplicatedColumn
impl Debug for ReplicatedColumn
§impl PartialEq for ReplicatedColumn
impl PartialEq for ReplicatedColumn
impl Eq for ReplicatedColumn
impl StructuralPartialEq for ReplicatedColumn
Auto Trait Implementations§
impl Freeze for ReplicatedColumn
impl RefUnwindSafe for ReplicatedColumn
impl Send for ReplicatedColumn
impl Sync for ReplicatedColumn
impl Unpin for ReplicatedColumn
impl UnsafeUnpin for ReplicatedColumn
impl UnwindSafe for ReplicatedColumn
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.