pub struct NestedInterfaceRequest {
pub name: String,
pub cable: Option<Option<i32>>,
}Expand description
NestedInterfaceRequest : Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
Fields§
§name: String§cable: Option<Option<i32>>Implementations§
Source§impl NestedInterfaceRequest
impl NestedInterfaceRequest
Sourcepub fn new(name: String) -> NestedInterfaceRequest
pub fn new(name: String) -> NestedInterfaceRequest
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
Trait Implementations§
Source§impl Clone for NestedInterfaceRequest
impl Clone for NestedInterfaceRequest
Source§fn clone(&self) -> NestedInterfaceRequest
fn clone(&self) -> NestedInterfaceRequest
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 Debug for NestedInterfaceRequest
impl Debug for NestedInterfaceRequest
Source§impl Default for NestedInterfaceRequest
impl Default for NestedInterfaceRequest
Source§fn default() -> NestedInterfaceRequest
fn default() -> NestedInterfaceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NestedInterfaceRequest
impl<'de> Deserialize<'de> for NestedInterfaceRequest
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 NestedInterfaceRequest
impl PartialEq for NestedInterfaceRequest
Source§impl Serialize for NestedInterfaceRequest
impl Serialize for NestedInterfaceRequest
impl StructuralPartialEq for NestedInterfaceRequest
Auto Trait Implementations§
impl Freeze for NestedInterfaceRequest
impl RefUnwindSafe for NestedInterfaceRequest
impl Send for NestedInterfaceRequest
impl Sync for NestedInterfaceRequest
impl Unpin for NestedInterfaceRequest
impl UnwindSafe for NestedInterfaceRequest
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