Enum cyfs_base::ObjectMapContentItem
source · 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<ObjectMapContentItem> for ObjectMapContentItem
impl PartialEq<ObjectMapContentItem> for ObjectMapContentItem
source§fn eq(&self, other: &ObjectMapContentItem) -> bool
fn eq(&self, other: &ObjectMapContentItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.