pub struct DeviceWithConfigContextRequestRole {
pub name: String,
pub slug: String,
pub description: Option<String>,
}Fields§
§name: String§slug: String§description: Option<String>Implementations§
Source§impl DeviceWithConfigContextRequestRole
impl DeviceWithConfigContextRequestRole
pub fn new(name: String, slug: String) -> DeviceWithConfigContextRequestRole
Trait Implementations§
Source§impl Clone for DeviceWithConfigContextRequestRole
impl Clone for DeviceWithConfigContextRequestRole
Source§fn clone(&self) -> DeviceWithConfigContextRequestRole
fn clone(&self) -> DeviceWithConfigContextRequestRole
Returns a duplicate 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 Default for DeviceWithConfigContextRequestRole
impl Default for DeviceWithConfigContextRequestRole
Source§fn default() -> DeviceWithConfigContextRequestRole
fn default() -> DeviceWithConfigContextRequestRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceWithConfigContextRequestRole
impl<'de> Deserialize<'de> for DeviceWithConfigContextRequestRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceWithConfigContextRequestRole
impl PartialEq for DeviceWithConfigContextRequestRole
Source§fn eq(&self, other: &DeviceWithConfigContextRequestRole) -> bool
fn eq(&self, other: &DeviceWithConfigContextRequestRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceWithConfigContextRequestRole
Auto Trait Implementations§
impl Freeze for DeviceWithConfigContextRequestRole
impl RefUnwindSafe for DeviceWithConfigContextRequestRole
impl Send for DeviceWithConfigContextRequestRole
impl Sync for DeviceWithConfigContextRequestRole
impl Unpin for DeviceWithConfigContextRequestRole
impl UnwindSafe for DeviceWithConfigContextRequestRole
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