pub struct IpAddressToInterface {Show 15 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub is_source: Option<bool>,
pub is_destination: Option<bool>,
pub is_default: Option<bool>,
pub is_preferred: Option<bool>,
pub is_primary: Option<bool>,
pub is_secondary: Option<bool>,
pub is_standby: Option<bool>,
pub ip_address: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub interface: Option<Option<Box<ApprovalWorkflowUser>>>,
pub vm_interface: Option<Option<Box<ApprovalWorkflowUser>>>,
}Expand description
IpAddressToInterface : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§is_source: Option<bool>Is source address on interface
is_destination: Option<bool>Is destination address on interface
is_default: Option<bool>Is default address on interface
is_preferred: Option<bool>Is preferred address on interface
is_primary: Option<bool>Is primary address on interface
is_secondary: Option<bool>Is secondary address on interface
is_standby: Option<bool>Is standby address on interface
ip_address: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§interface: Option<Option<Box<ApprovalWorkflowUser>>>§vm_interface: Option<Option<Box<ApprovalWorkflowUser>>>Implementations§
Source§impl IpAddressToInterface
impl IpAddressToInterface
Sourcepub fn new(
ip_address: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> IpAddressToInterface
pub fn new( ip_address: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> IpAddressToInterface
Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Trait Implementations§
Source§impl Clone for IpAddressToInterface
impl Clone for IpAddressToInterface
Source§fn clone(&self) -> IpAddressToInterface
fn clone(&self) -> IpAddressToInterface
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 IpAddressToInterface
impl Debug for IpAddressToInterface
Source§impl Default for IpAddressToInterface
impl Default for IpAddressToInterface
Source§fn default() -> IpAddressToInterface
fn default() -> IpAddressToInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IpAddressToInterface
impl<'de> Deserialize<'de> for IpAddressToInterface
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 IpAddressToInterface
impl PartialEq for IpAddressToInterface
Source§impl Serialize for IpAddressToInterface
impl Serialize for IpAddressToInterface
impl StructuralPartialEq for IpAddressToInterface
Auto Trait Implementations§
impl Freeze for IpAddressToInterface
impl RefUnwindSafe for IpAddressToInterface
impl Send for IpAddressToInterface
impl Sync for IpAddressToInterface
impl Unpin for IpAddressToInterface
impl UnsafeUnpin for IpAddressToInterface
impl UnwindSafe for IpAddressToInterface
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