pub struct BriefInterface {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub device: Box<BriefDevice>,
pub name: String,
pub description: Option<String>,
pub cable: Option<Option<Box<BriefCable>>>,
pub _occupied: Option<bool>,
}Expand description
BriefInterface : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§id: Option<i32>§url: Option<String>§display: Option<String>§device: Box<BriefDevice>§name: String§description: Option<String>§cable: Option<Option<Box<BriefCable>>>§_occupied: Option<bool>Implementations§
Source§impl BriefInterface
impl BriefInterface
Sourcepub fn new(device: BriefDevice, name: String) -> BriefInterface
pub fn new(device: BriefDevice, name: String) -> BriefInterface
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for BriefInterface
impl Clone for BriefInterface
Source§fn clone(&self) -> BriefInterface
fn clone(&self) -> BriefInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BriefInterface
impl Debug for BriefInterface
Source§impl Default for BriefInterface
impl Default for BriefInterface
Source§fn default() -> BriefInterface
fn default() -> BriefInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BriefInterface
impl<'de> Deserialize<'de> for BriefInterface
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 BriefInterface
impl PartialEq for BriefInterface
Source§fn eq(&self, other: &BriefInterface) -> bool
fn eq(&self, other: &BriefInterface) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BriefInterface
impl Serialize for BriefInterface
impl StructuralPartialEq for BriefInterface
Auto Trait Implementations§
impl Freeze for BriefInterface
impl RefUnwindSafe for BriefInterface
impl Send for BriefInterface
impl Sync for BriefInterface
impl Unpin for BriefInterface
impl UnsafeUnpin for BriefInterface
impl UnwindSafe for BriefInterface
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