Docs.rs
bucky-objects-0.1.0
bucky-objects 0.1.0
Permalink
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
BDTDevTeam
Dependencies
async-recursion ^1.1.1
normal
async-std ^1.12.0
normal
async-trait ^0.1.80
normal
base-x ^0.2
normal
base58 ^0.2.0
normal
bucky-crypto ^0.1.0
normal
bucky-error ^0.1.0
normal
bucky-raw-codec ^0.1.0
normal
bucky-time ^0.1.0
normal
generic-array ^0.12
normal
hex ^0.4.3
normal
intbits ^0.2.0
normal
itertools ^0.13.0
normal
log ^0.4.21
normal
lru_time_cache ^0.11.11
normal
once_cell ^1.19.0
normal
primitive-types ^0.12.2
normal
protobuf ^2
normal
rand ^0.8.5
normal
serde ^1.0.202
normal
chrono ^0.4
build
protoc-bin-vendored ^3
build
protoc-rust ^2
build
Versions
2.29%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
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
bucky_
objects
0.1.0
Group
Aliased Type
Methods
admins
check_org_body_content
check_org_body_content_mut
check_org_desc_content
check_simple_group_body_content
check_simple_group_body_content_mut
check_simple_group_desc_content
contain_ood
description
founder_id
icon
is_org
is_same_ood_list
is_simple_group
members
name
new_org
new_simple_group
ood_list
ood_list_with_distance
prev_shell_id
select_members_with_distance
set_description
set_icon
set_members
set_name
set_ood_list
set_prev_shell_id
set_version
version
In crate bucky_
objects
bucky_objects
Type Alias
Group
Copy item path
Source
pub type Group =
NamedObjectBase
<
GroupType
>;
Aliased Type
§
pub struct Group {
/* private fields */
}
Implementations
§
Source
§
impl
Group
Source
pub fn
new_simple_group
( founder_id:
Option
<
ObjectId
>, admins:
Vec
<
GroupMember
>, area:
Area
, ) ->
GroupBuilder
Source
pub fn
new_org
(founder_id:
Option
<
ObjectId
>, area:
Area
) ->
GroupBuilder
Source
pub fn
founder_id
(&self) -> &
Option
<
ObjectId
>
Source
pub fn
name
(&self) -> &
Option
<
String
>
Source
pub fn
set_name
(&mut self, name:
Option
<
String
>)
Source
pub fn
icon
(&self) -> &
Option
<
String
>
Source
pub fn
set_icon
(&mut self, icon:
Option
<
String
>)
Source
pub fn
description
(&self) -> &
Option
<
String
>
Source
pub fn
set_description
(&mut self, description:
Option
<
String
>)
Source
pub fn
admins
(&self) -> &
HashMap
<
ObjectId
,
GroupMember
>
Source
pub fn
members
(&self) -> &
HashMap
<
ObjectId
,
GroupMember
>
Source
pub fn
set_members
(&mut self, members:
Vec
<
GroupMember
>)
Source
pub fn
ood_list
(&self) -> &
Vec
<
DeviceId
>
ⓘ
Source
pub fn
set_ood_list
(&mut self, oods:
Vec
<
DeviceId
>)
Source
pub fn
contain_ood
(&self, ood_id: &
ObjectId
) ->
bool
Source
pub fn
is_same_ood_list
(&self, other: &
Group
) ->
bool
Source
pub fn
version
(&self) ->
u64
Source
pub fn
set_version
(&mut self, version:
u64
)
Source
pub fn
prev_shell_id
(&self) -> &
Option
<
ObjectId
>
Source
pub fn
set_prev_shell_id
(&mut self, prev_shell_id:
Option
<
ObjectId
>)
Source
pub fn
is_simple_group
(&self) ->
bool
Source
pub fn
is_org
(&self) ->
bool
Source
pub fn
check_simple_group_desc_content
(&self) -> &
SimpleGroupDescContent
Source
pub fn
check_org_desc_content
(&self) -> &
OrgDescContent
Source
pub fn
check_simple_group_body_content
(&self) -> &
SimpleGroupBodyContent
Source
pub fn
check_org_body_content
(&self) -> &
OrgBodyContent
Source
pub fn
check_simple_group_body_content_mut
( &mut self, ) -> &mut
SimpleGroupBodyContent
Source
pub fn
check_org_body_content_mut
(&mut self) -> &mut
OrgBodyContent
Source
pub fn
select_members_with_distance
( &self, target: &
ObjectId
, scope:
GroupMemberScope
, ) ->
Vec
<&
ObjectId
>
Source
pub fn
ood_list_with_distance
(&self, target: &
ObjectId
) ->
Vec
<&
ObjectId
>