pub struct DeviceStaticInfo {Show 13 fields
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,
pub sn_list: Vec<DeviceId>,
pub known_sn_list: Vec<DeviceId>,
}
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
§sn_list: Vec<DeviceId>
§known_sn_list: Vec<DeviceId>
Trait Implementations§
Source§impl Clone for DeviceStaticInfo
impl Clone for DeviceStaticInfo
Source§fn clone(&self) -> DeviceStaticInfo
fn clone(&self) -> DeviceStaticInfo
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 DeviceStaticInfo
impl Debug for DeviceStaticInfo
Source§impl 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 Freeze for DeviceStaticInfo
impl RefUnwindSafe for DeviceStaticInfo
impl Send for DeviceStaticInfo
impl Sync for DeviceStaticInfo
impl Unpin for DeviceStaticInfo
impl UnwindSafe for DeviceStaticInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more