pub struct SerializedItem {
pub version: u64,
pub deleted: bool,
pub serialized_item: String,
}
Expand description
A serialized item representing either a flag or a segment.
Fields§
§version: u64
The version of the underlying item.
deleted: bool
Whether or not the serialized item is a tombstone or an actual item.
serialized_item: String
The serialized JSON representation of the underlying item.
Trait Implementations§
Source§impl Clone for SerializedItem
impl Clone for SerializedItem
Source§fn clone(&self) -> SerializedItem
fn clone(&self) -> SerializedItem
Returns a copy 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<T> TryFrom<StorageItem<T>> for SerializedItem
impl<T> TryFrom<StorageItem<T>> for SerializedItem
Source§impl TryInto<StorageItem<Flag>> for SerializedItem
impl TryInto<StorageItem<Flag>> for SerializedItem
Auto Trait Implementations§
impl Freeze for SerializedItem
impl RefUnwindSafe for SerializedItem
impl Send for SerializedItem
impl Sync for SerializedItem
impl Unpin for SerializedItem
impl UnwindSafe for SerializedItem
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more