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
sourceimpl 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
sourceimpl Debug for ObjectMapContentItem
impl Debug for ObjectMapContentItem
sourceimpl Display for ObjectMapContentItem
impl Display for ObjectMapContentItem
sourceimpl 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
Auto Trait Implementations
impl RefUnwindSafe for ObjectMapContentItem
impl Send for ObjectMapContentItem
impl Sync for ObjectMapContentItem
impl Unpin for ObjectMapContentItem
impl UnwindSafe for ObjectMapContentItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more