Struct cyfs_lib::RequestSourceInfo
source · pub struct RequestSourceInfo {
pub protocol: RequestProtocol,
pub zone: DeviceZoneInfo,
pub dec: ObjectId,
pub verified: Option<ObjectId>,
}
Fields§
§protocol: RequestProtocol
§zone: DeviceZoneInfo
§dec: ObjectId
§verified: Option<ObjectId>
Implementations§
source§impl RequestSourceInfo
impl RequestSourceInfo
pub fn new_local_system() -> Self
pub fn new_local_anonymouse() -> Self
pub fn new_local_dec(dec: Option<ObjectId>) -> Self
pub fn new_local_dec_or_system(dec: Option<ObjectId>) -> Self
pub fn new_zone_dec(dec: Option<ObjectId>) -> Self
pub fn new_friend_zone_dec(dec: Option<ObjectId>) -> Self
pub fn new_other_zone_dec(dec: Option<ObjectId>) -> Self
pub fn protocol(self, protocol: RequestProtocol) -> Self
pub fn set_dec(&mut self, dec_id: ObjectId)
pub fn dec(self, dec_id: ObjectId) -> Self
pub fn is_system_dec(&self) -> bool
pub fn is_anonymous_dec_app(&self) -> bool
pub fn get_opt_dec(&self) -> Option<&ObjectId>
pub fn set_verified(&mut self, target_dec_id: ObjectId)
pub fn is_verified(&self, target_dec_id: &ObjectId) -> bool
pub fn is_fuzzy_verified(&self) -> bool
pub fn check_target_dec_permission( &self, op_target_dec: &Option<ObjectId> ) -> bool
pub fn check_target_dec_permission2( &self, op_target_dec: Option<&ObjectId> ) -> bool
pub fn is_current_device(&self) -> bool
pub fn is_current_zone(&self) -> bool
pub fn compare_zone_category(&self, zone_category: DeviceZoneCategory) -> bool
pub fn compare_zone(&self, zone: &ObjectId) -> bool
pub fn compare_dec(&self, dec: &ObjectId) -> bool
pub fn mask( &self, own_dec_id: &ObjectId, permissions: impl Into<AccessPermissions> ) -> u32
pub fn owner_dec_mask(&self, permissions: impl Into<AccessPermissions>) -> u32
pub fn other_dec_mask(&self, permissions: impl Into<AccessPermissions>) -> u32
pub fn check_current_zone(&self, service: &str) -> BuckyResult<()>
pub fn check_current_device(&self, service: &str) -> BuckyResult<()>
Trait Implementations§
source§impl Clone for RequestSourceInfo
impl Clone for RequestSourceInfo
source§fn clone(&self) -> RequestSourceInfo
fn clone(&self) -> RequestSourceInfo
Returns a copy of the value. Read more
1.0.0 · 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 RequestSourceInfo
impl Debug for RequestSourceInfo
source§impl Display for RequestSourceInfo
impl Display for RequestSourceInfo
source§impl Into<OpEnvSourceInfo> for RequestSourceInfo
impl Into<OpEnvSourceInfo> for RequestSourceInfo
source§fn into(self) -> OpEnvSourceInfo
fn into(self) -> OpEnvSourceInfo
Converts this type into the (usually inferred) input type.