pub enum ObjectMapContentItem {
DiffMap((String, ObjectMapDiffMapItem)),
Map((String, ObjectId)),
DiffSet(ObjectMapDiffSetItem),
Set(ObjectId),
}
Variants§
DiffMap((String, ObjectMapDiffMapItem))
Map((String, ObjectId))
DiffSet(ObjectMapDiffSetItem)
Set(ObjectId)
Implementations§
Source§impl ObjectMapContentItem
impl ObjectMapContentItem
pub fn content_type(&self) -> ObjectMapSimpleContentType
pub fn into_map_item(self) -> (String, ObjectId)
pub fn into_diff_map_item(self) -> (String, ObjectMapDiffMapItem)
pub fn into_set_item(self) -> ObjectId
pub fn into_diff_set_item(self) -> ObjectMapDiffSetItem
Trait Implementations§
Source§impl Debug for ObjectMapContentItem
impl Debug for ObjectMapContentItem
Source§impl Display for ObjectMapContentItem
impl Display for ObjectMapContentItem
Source§impl JsonCodec<ObjectMapContentItem> for ObjectMapContentItem
impl JsonCodec<ObjectMapContentItem> for ObjectMapContentItem
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> BuckyResult<T>
fn decode_value(value: &Value) -> BuckyResult<T>
fn encode_value(&self) -> Value
Source§impl PartialEq for ObjectMapContentItem
impl PartialEq for ObjectMapContentItem
impl Eq for ObjectMapContentItem
impl StructuralPartialEq for ObjectMapContentItem
Auto Trait Implementations§
impl Freeze for ObjectMapContentItem
impl RefUnwindSafe for ObjectMapContentItem
impl Send for ObjectMapContentItem
impl Sync for ObjectMapContentItem
impl Unpin for ObjectMapContentItem
impl UnwindSafe for ObjectMapContentItem
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> 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