pub struct ObjectMapDescContent { /* private fields */ }Implementations§
Source§impl ObjectMapDescContent
impl ObjectMapDescContent
pub fn new( class: ObjectMapClass, content_type: ObjectMapSimpleContentType, depth: u8, ) -> Self
pub fn count(&self) -> u64
pub fn size(&self) -> u64
pub fn depth(&self) -> u8
pub fn object_id(&self) -> Option<ObjectId>
pub fn content_type(&self) -> &ObjectMapSimpleContentType
pub fn mode(&self) -> ObjectMapContentMode
pub fn class(&self) -> ObjectMapClass
pub fn set_class(&mut self, class: ObjectMapClass)
pub fn content(&self) -> &ObjectMapContent
pub fn metadata(&self) -> ObjectMapMetaData
pub fn into_simple(self) -> ObjectMapSimpleContent
pub async fn convert_to_simple( &mut self, cache: &ObjectMapOpEnvCacheRef, ) -> BuckyResult<()>
pub async fn convert_to_hub( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, ) -> BuckyResult<()>
pub async fn inflate_check_point( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, ) -> BuckyResult<()>
pub async fn deflate_check_point( &mut self, cache: &ObjectMapOpEnvCacheRef, ) -> BuckyResult<()>
pub async fn get_or_create_child_object_map( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, auto_create: ObjectMapCreateStrategy, access: Option<AccessString>, ) -> BuckyResult<Option<ObjectMapRef>>
pub async fn list( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut ObjectMapContentList, ) -> BuckyResult<u64>
pub async fn list_subs( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut Vec<ObjectId>, ) -> BuckyResult<u64>
pub async fn next(&self, it: &mut ObjectMapIterator) -> BuckyResult<()>
pub async fn get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str, ) -> BuckyResult<Option<ObjectId>>
pub async fn insert_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId, prev_value: &Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
pub async fn diff_get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str, ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn diff_insert_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem, ) -> BuckyResult<()>
pub async fn diff_set_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem, prev_value: &Option<ObjectMapDiffMapItem>, auto_insert: bool, ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn diff_remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectMapDiffMapItem>, ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn insert( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn diff_contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem, ) -> BuckyResult<bool>
pub async fn diff_insert( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem, ) -> BuckyResult<bool>
pub async fn diff_remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem, ) -> BuckyResult<bool>
pub async fn visit( &self, visitor: &mut impl ObjectMapVisitor, ) -> BuckyResult<()>
Trait Implementations§
Source§impl Clone for ObjectMapDescContent
impl Clone for ObjectMapDescContent
Source§fn clone(&self) -> ObjectMapDescContent
fn clone(&self) -> ObjectMapDescContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectMapDescContent
impl Debug for ObjectMapDescContent
Source§impl DescContent for ObjectMapDescContent
impl DescContent for ObjectMapDescContent
type OwnerType = Option<ObjectId>
type AreaType = SubDescNone
type AuthorType = SubDescNone
type PublicKeyType = SubDescNone
fn obj_type() -> u16
fn obj_type_code() -> ObjectTypeCode
fn desc_content_type() -> DescContentType
fn is_standard_object() -> bool
fn is_core_object() -> bool
fn is_decapp_object() -> bool
fn debug_info() -> String
fn version(&self) -> u8
fn format(&self) -> u8
Source§impl ObjectFormat for ObjectMapDescContent
impl ObjectFormat for ObjectMapDescContent
fn format_json(&self) -> Value
Source§impl RawDecode<'_> for ObjectMapDescContent
impl RawDecode<'_> for ObjectMapDescContent
fn raw_decode(buf: &[u8]) -> BuckyResult<(Self, &[u8])>
fn raw_decode_with_option( buf: &'de [u8], _opt: &RawDecodeOption, ) -> BuckyResult<(Self, &'de [u8])>
Source§impl RawEncode for ObjectMapDescContent
impl RawEncode for ObjectMapDescContent
fn raw_measure(&self, purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations§
impl !Freeze for ObjectMapDescContent
impl RefUnwindSafe for ObjectMapDescContent
impl Send for ObjectMapDescContent
impl Sync for ObjectMapDescContent
impl Unpin for ObjectMapDescContent
impl UnsafeUnpin for ObjectMapDescContent
impl UnwindSafe for ObjectMapDescContent
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<'de, D> FileDecoder<'de> for Dwhere
D: RawDecode<'de>,
impl<'de, D> FileDecoder<'de> for Dwhere
D: RawDecode<'de>,
fn decode_from_file( file: &Path, buf: &'de mut Vec<u8>, ) -> Result<(D, usize), BuckyError>
Source§impl<D> FileEncoder<D> for Dwhere
D: RawEncode,
impl<D> FileEncoder<D> for Dwhere
D: RawEncode,
fn suggest_buffer_size(&self) -> Result<usize, BuckyError>
fn encode<'a>( &self, buf: &'a mut [u8], _is_compress: bool, ) -> Result<&'a mut [u8], BuckyError>
fn encode_to_writer( &self, writer: impl Write, is_compress: bool, ) -> BuckyResult<usize>
fn encode_to_file(&self, file: &Path, is_compress: bool) -> BuckyResult<usize>
fn encode_to_vec(&self, is_compress: bool) -> BuckyResult<Vec<u8>>
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