Docs.rs
cyfs-base-0.6.12
cyfs-base 0.6.12
Permalink
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
optional
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
1.4%
of the crate is documented
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ObjectMap
cyfs_
base
0.6.12
Object
Map
Aliased Type
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 crate cyfs_
base
cyfs_base
Type Alias
Object
Map
Copy item path
Source
pub type ObjectMap =
NamedObjectBase
<
ObjectMapType
>;
Aliased Type
§
pub struct ObjectMap {
/* private fields */
}
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
<
()
>