Struct cyfs_base::DeviceBodyContent
source · pub struct DeviceBodyContent { /* private fields */ }
Implementations§
source§impl DeviceBodyContent
impl DeviceBodyContent
pub fn new( endpoints: Vec<Endpoint>, sn_list: Vec<DeviceId>, passive_pn_list: Vec<DeviceId>, name: Option<String>, bdt_version: Option<u8> ) -> Self
pub fn endpoints(&self) -> &Vec<Endpoint>
pub fn sn_list(&self) -> &Vec<DeviceId>
pub fn passive_pn_list(&self) -> &Vec<DeviceId>
pub fn mut_endpoints(&mut self) -> &mut Vec<Endpoint>
pub fn mut_sn_list(&mut self) -> &mut Vec<DeviceId>
pub fn mut_passive_pn_list(&mut self) -> &mut Vec<DeviceId>
pub fn name(&self) -> Option<&str>
pub fn set_name(&mut self, name: Option<String>)
pub fn bdt_version(&self) -> Option<u8>
pub fn set_bdt_version(&mut self, bdt_version: Option<u8>)
Trait Implementations§
source§impl BodyContent for DeviceBodyContent
impl BodyContent for DeviceBodyContent
source§impl Clone for DeviceBodyContent
impl Clone for DeviceBodyContent
source§fn clone(&self) -> DeviceBodyContent
fn clone(&self) -> DeviceBodyContent
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 DeviceBodyContent
impl Debug for DeviceBodyContent
source§impl Default for DeviceBodyContent
impl Default for DeviceBodyContent
source§impl Display for DeviceBodyContent
impl Display for DeviceBodyContent
source§impl ObjectFormat for DeviceBodyContent
impl ObjectFormat for DeviceBodyContent
fn format_json(&self) -> Value
source§impl PartialEq<DeviceBodyContent> for DeviceBodyContent
impl PartialEq<DeviceBodyContent> for DeviceBodyContent
source§fn eq(&self, other: &DeviceBodyContent) -> bool
fn eq(&self, other: &DeviceBodyContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.