pub struct ManifestField {
pub name: String,
pub field_type: String,
pub optional: bool,
pub unique: bool,
pub crdt: Option<CrdtAnnotation>,
}Fields§
§name: String§field_type: String§optional: bool§unique: bool§crdt: Option<CrdtAnnotation>CRDT container override for this field. None = pick a sensible
default for the field type (most things are LWW; richtext
defaults to LoroText). Typed enum so typos in the manifest
fail at deserialize time instead of at first write.
Ignored when the entity has crdt: false (the LWW-only escape
hatch on the entity itself).
Trait Implementations§
Source§impl Clone for ManifestField
impl Clone for ManifestField
Source§fn clone(&self) -> ManifestField
fn clone(&self) -> ManifestField
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 ManifestField
impl Debug for ManifestField
Source§impl<'de> Deserialize<'de> for ManifestField
impl<'de> Deserialize<'de> for ManifestField
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 ManifestField
impl PartialEq for ManifestField
Source§impl Serialize for ManifestField
impl Serialize for ManifestField
impl Eq for ManifestField
impl StructuralPartialEq for ManifestField
Auto Trait Implementations§
impl Freeze for ManifestField
impl RefUnwindSafe for ManifestField
impl Send for ManifestField
impl Sync for ManifestField
impl Unpin for ManifestField
impl UnsafeUnpin for ManifestField
impl UnwindSafe for ManifestField
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