pub struct FieldDescriptor { /* private fields */ }Expand description
The stable replicated contract for one record field.
Implementations§
Source§impl FieldDescriptor
impl FieldDescriptor
Sourcepub fn new(
id: u32,
name: impl Into<String>,
crdt: CrdtKind,
value_type: impl Into<String>,
) -> Self
pub fn new( id: u32, name: impl Into<String>, crdt: CrdtKind, value_type: impl Into<String>, ) -> Self
Declares a replicated field.
Sourcepub fn value_type(&self) -> &str
pub fn value_type(&self) -> &str
Returns the stable logical value-type name.
Sourcepub const fn is_indexed(&self) -> bool
pub const fn is_indexed(&self) -> bool
Returns whether the field has a secondary index.
Sourcepub const fn is_record_id(&self) -> bool
pub const fn is_record_id(&self) -> bool
Returns whether the field is the record identifier.
Trait Implementations§
Source§impl Clone for FieldDescriptor
impl Clone for FieldDescriptor
Source§fn clone(&self) -> FieldDescriptor
fn clone(&self) -> FieldDescriptor
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 FieldDescriptor
impl Debug for FieldDescriptor
Source§impl PartialEq for FieldDescriptor
impl PartialEq for FieldDescriptor
impl Eq for FieldDescriptor
impl StructuralPartialEq for FieldDescriptor
Auto Trait Implementations§
impl Freeze for FieldDescriptor
impl RefUnwindSafe for FieldDescriptor
impl Send for FieldDescriptor
impl Sync for FieldDescriptor
impl Unpin for FieldDescriptor
impl UnwindSafe for FieldDescriptor
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