pub struct FieldConfig {
pub name: String,
pub strategy: CrdtStrategy,
pub optional: bool,
pub default: Option<Value>,
}Expand description
Field configuration for CRDT builder
Fields§
§name: StringField name
strategy: CrdtStrategyCRDT strategy to use
optional: boolWhether the field is optional
default: Option<Value>Default value for optional fields
Trait Implementations§
Source§impl Clone for FieldConfig
impl Clone for FieldConfig
Source§fn clone(&self) -> FieldConfig
fn clone(&self) -> FieldConfig
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 FieldConfig
impl Debug for FieldConfig
Source§impl<'de> Deserialize<'de> for FieldConfig
impl<'de> Deserialize<'de> for FieldConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldConfig
impl PartialEq for FieldConfig
Source§impl Serialize for FieldConfig
impl Serialize for FieldConfig
impl StructuralPartialEq for FieldConfig
Auto Trait Implementations§
impl Freeze for FieldConfig
impl RefUnwindSafe for FieldConfig
impl Send for FieldConfig
impl Sync for FieldConfig
impl Unpin for FieldConfig
impl UnwindSafe for FieldConfig
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