Docs.rs
cyfs-base-0.6.12
cyfs-base 0.6.12
Docs.rs crate page
BSD-2-Clause
Links
crates.io
Source
Owners
BDTDevTeam
Dependencies
aes =0.7
normal
async-recursion ^1.0
normal
async-std ^1.11
normal
async-trait ^0.1.53
normal
base-x ^0.2.0
normal
base58 ^0.2.0
normal
block-modes =0.8
normal
chrono ^0.4
normal
cyfs-base-derive ^0.5
normal
cyfs-ecies ^0.1.4
normal
generic-array ^0.12
normal
hex ^0.4
normal
http-types ^2.12
normal
int-enum ^0.4
normal
intbits ^0.2
normal
itertools ^0.10
normal
lazy_static ^1.4
normal
libc ^0.2
normal
libsecp256k1 ^0.3.5
normal
log ^0.4
normal
lru_time_cache ^0.11
normal
once_cell ^1.12
normal
primitive-types ^0.9
normal
protobuf ^2
normal
rand ^0.7
normal
rsa ^0.3.0
normal
rsa-export ^0.1.1
normal
serde ^1.0
normal
serde_json ^1.0
normal
sha2 ^0.8
normal
simple_logger ^2.1
normal
sqlx ^0.5
normal
url ^2.2
normal
chrono ^0.4
build
protoc-bin-vendored ^3
build
protoc-rust ^2
build
rusqlite ^0.27.0
normal
zip ^0.6
normal
Versions
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
ObjectMap
Methods
cached_object_id
class
contains
content_type
convert_to_hub
convert_to_simple
count
depth
diff_contains
diff_get_by_key
diff_insert
diff_insert_with_key
diff_remove
diff_remove_with_key
diff_set_with_key
direct_set_object_id_on_init
flush_id
flush_id_without_cache
get_by_key
get_or_create_child_object_map
insert
insert_with_key
into_simple
list
list_direct
list_subs
metadata
mode
new
next
object_id
remove
remove_with_key
set_with_key
visit
In cyfs_base
?
Type Definition
cyfs_base
::
ObjectMap
source
·
[
−
]
pub type ObjectMap =
NamedObjectBase
<
ObjectMapType
>;
Implementations
§
source
§
impl
ObjectMap
source
pub fn
new
( content_type:
ObjectMapSimpleContentType
, owner:
Option
<
ObjectId
>, dec_id:
Option
<
ObjectId
> ) ->
ObjectMapBuilder
source
pub fn
count
(&self) ->
u64
source
pub fn
object_id
(&self) ->
ObjectId
source
pub fn
content_type
(&self) ->
ObjectMapSimpleContentType
source
pub fn
mode
(&self) ->
ObjectMapContentMode
source
pub fn
class
(&self) ->
ObjectMapClass
source
pub fn
depth
(&self) ->
u8
source
pub fn
metadata
(&self) ->
ObjectMapMetaData
source
pub fn
cached_object_id
(&self) ->
Option
<
ObjectId
>
source
pub fn
direct_set_object_id_on_init
(&self, object_id: &
ObjectId
)
source
pub fn
flush_id
(&self) ->
ObjectId
source
pub fn
flush_id_without_cache
(&self) ->
ObjectId
source
pub async fn
convert_to_simple
( &mut self, cache: &
ObjectMapOpEnvCacheRef
) ->
BuckyResult
<
()
>
source
pub async fn
convert_to_hub
( &mut self, cache: &
ObjectMapOpEnvCacheRef
) ->
BuckyResult
<
()
>
source
pub fn
into_simple
(self) ->
ObjectMapSimpleContent
source
pub async fn
get_or_create_child_object_map
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, content_type:
ObjectMapSimpleContentType
, auto_create:
ObjectMapCreateStrategy
, access:
Option
<
AccessString
> ) ->
BuckyResult
<
Option
<
ObjectMapRef
>>
source
pub async fn
list
( &self, cache: &
ObjectMapOpEnvCacheRef
, list: &mut
ObjectMapContentList
) ->
BuckyResult
<
u64
>
source
pub async fn
list_direct
( &self, cache: &
ObjectMapOpEnvCacheRef
) ->
BuckyResult
<
ObjectMapContentList
>
source
pub async fn
list_subs
( &self, cache: &
ObjectMapOpEnvCacheRef
, list: &mut
Vec
<
ObjectId
> ) ->
BuckyResult
<
u64
>
source
pub async fn
next
(&self, it: &mut
ObjectMapIterator
) ->
BuckyResult
<
()
>
source
pub async fn
get_by_key
( &self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
) ->
BuckyResult
<
Option
<
ObjectId
>>
source
pub async fn
insert_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, value: &
ObjectId
) ->
BuckyResult
<
()
>
source
pub async fn
set_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, value: &
ObjectId
, prev_value: &
Option
<
ObjectId
>, auto_insert:
bool
) ->
BuckyResult
<
Option
<
ObjectId
>>
source
pub async fn
remove_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, prev_value: &
Option
<
ObjectId
> ) ->
BuckyResult
<
Option
<
ObjectId
>>
source
pub async fn
diff_get_by_key
( &self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
) ->
BuckyResult
<
Option
<
ObjectMapDiffMapItem
>>
source
pub async fn
diff_insert_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, value: &
ObjectMapDiffMapItem
) ->
BuckyResult
<
()
>
source
pub async fn
diff_set_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, value: &
ObjectMapDiffMapItem
, prev_value: &
Option
<
ObjectMapDiffMapItem
>, auto_insert:
bool
) ->
BuckyResult
<
Option
<
ObjectMapDiffMapItem
>>
source
pub async fn
diff_remove_with_key
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, key: &
str
, prev_value: &
Option
<
ObjectMapDiffMapItem
> ) ->
BuckyResult
<
Option
<
ObjectMapDiffMapItem
>>
source
pub async fn
contains
( &self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectId
) ->
BuckyResult
<
bool
>
source
pub async fn
insert
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectId
) ->
BuckyResult
<
bool
>
source
pub async fn
remove
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectId
) ->
BuckyResult
<
bool
>
source
pub async fn
diff_contains
( &self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectMapDiffSetItem
) ->
BuckyResult
<
bool
>
source
pub async fn
diff_insert
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectMapDiffSetItem
) ->
BuckyResult
<
bool
>
source
pub async fn
diff_remove
( &mut self, cache: &
ObjectMapOpEnvCacheRef
, object_id: &
ObjectMapDiffSetItem
) ->
BuckyResult
<
bool
>
source
pub async fn
visit
( &self, visitor: &mut impl
ObjectMapVisitor
) ->
BuckyResult
<
()
>