Struct cyfs_lib::DeviceZoneInfo
source · [−]pub struct DeviceZoneInfo {
pub device: Option<DeviceId>,
pub zone: Option<ObjectId>,
pub zone_category: DeviceZoneCategory,
}
Fields
device: Option<DeviceId>
zone: Option<ObjectId>
zone_category: DeviceZoneCategory
Implementations
sourceimpl DeviceZoneInfo
impl DeviceZoneInfo
pub fn new_local() -> Self
pub fn new_current_zone() -> Self
pub fn new_friend_zone() -> Self
pub fn new_other_zone() -> Self
pub fn is_current_device(&self) -> bool
pub fn is_current_zone(&self) -> bool
pub fn is_friend_zone(&self) -> bool
Trait Implementations
sourceimpl Clone for DeviceZoneInfo
impl Clone for DeviceZoneInfo
sourcefn clone(&self) -> DeviceZoneInfo
fn clone(&self) -> DeviceZoneInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeviceZoneInfo
impl Debug for DeviceZoneInfo
sourceimpl JsonCodec<DeviceZoneInfo> for DeviceZoneInfo
impl JsonCodec<DeviceZoneInfo> for DeviceZoneInfo
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
Auto Trait Implementations
impl RefUnwindSafe for DeviceZoneInfo
impl Send for DeviceZoneInfo
impl Sync for DeviceZoneInfo
impl Unpin for DeviceZoneInfo
impl UnwindSafe for DeviceZoneInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more