pub struct Row {
pub key: String,
pub value: Value,
pub ord: i64,
pub part: String,
}Expand description
One row of a collection: a key, any JSON value, its order in the list and the group it belongs to.
Fields§
§key: StringThe row’s identity in its collection: 1–256 bytes, no control characters.
value: ValueAny JSON value, at most 65,536 bytes encoded and 127 containers deep.
ord: i64The row’s position in its list; 0 when the list has no order of its own.
part: StringA group the row belongs to (a conversation id for a message); "" for none.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Row
["<key>", <value>, <ord>, "<part>"], dropping a trailing part of "" and
then a trailing ord of 0: ["k", {…}] is a complete entry.
impl Serialize for Row
["<key>", <value>, <ord>, "<part>"], dropping a trailing part of "" and
then a trailing ord of 0: ["k", {…}] is a complete entry.
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Forget for Row
impl Freeze for Rowwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Rowwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Row
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