Struct cyfs_lib::DeviceStaticInfo
source · pub struct DeviceStaticInfo {
pub device_id: DeviceId,
pub device: Device,
pub is_ood_device: bool,
pub ood_work_mode: OODWorkMode,
pub zone_role: ZoneRole,
pub root_state_access_mode: GlobalStateAccessMode,
pub local_cache_access_mode: GlobalStateAccessMode,
pub ood_device_id: DeviceId,
pub zone_id: ZoneId,
pub owner_id: Option<ObjectId>,
pub cyfs_root: String,
}
Fields
device_id: DeviceId
device: Device
is_ood_device: bool
ood_work_mode: OODWorkMode
zone_role: ZoneRole
root_state_access_mode: GlobalStateAccessMode
local_cache_access_mode: GlobalStateAccessMode
ood_device_id: DeviceId
zone_id: ZoneId
owner_id: Option<ObjectId>
cyfs_root: String
Trait Implementations
sourceimpl Clone for DeviceStaticInfo
impl Clone for DeviceStaticInfo
sourcefn clone(&self) -> DeviceStaticInfo
fn clone(&self) -> DeviceStaticInfo
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 DeviceStaticInfo
impl Debug for DeviceStaticInfo
sourceimpl JsonCodec<DeviceStaticInfo> for DeviceStaticInfo
impl JsonCodec<DeviceStaticInfo> for DeviceStaticInfo
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 DeviceStaticInfo
impl Send for DeviceStaticInfo
impl Sync for DeviceStaticInfo
impl Unpin for DeviceStaticInfo
impl UnwindSafe for DeviceStaticInfo
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