pub struct BulkWritableIpAddressToInterfaceRequest {
pub id: Uuid,
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
BulkWritableIpAddressToInterfaceRequest : 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: Uuid§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 BulkWritableIpAddressToInterfaceRequest
impl BulkWritableIpAddressToInterfaceRequest
Sourcepub fn new(
id: Uuid,
ip_address: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> BulkWritableIpAddressToInterfaceRequest
pub fn new( id: Uuid, ip_address: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> BulkWritableIpAddressToInterfaceRequest
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 BulkWritableIpAddressToInterfaceRequest
impl Clone for BulkWritableIpAddressToInterfaceRequest
Source§fn clone(&self) -> BulkWritableIpAddressToInterfaceRequest
fn clone(&self) -> BulkWritableIpAddressToInterfaceRequest
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 BulkWritableIpAddressToInterfaceRequest
impl Default for BulkWritableIpAddressToInterfaceRequest
Source§fn default() -> BulkWritableIpAddressToInterfaceRequest
fn default() -> BulkWritableIpAddressToInterfaceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BulkWritableIpAddressToInterfaceRequest
impl<'de> Deserialize<'de> for BulkWritableIpAddressToInterfaceRequest
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 BulkWritableIpAddressToInterfaceRequest
impl PartialEq for BulkWritableIpAddressToInterfaceRequest
Source§fn eq(&self, other: &BulkWritableIpAddressToInterfaceRequest) -> bool
fn eq(&self, other: &BulkWritableIpAddressToInterfaceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BulkWritableIpAddressToInterfaceRequest
Auto Trait Implementations§
impl Freeze for BulkWritableIpAddressToInterfaceRequest
impl RefUnwindSafe for BulkWritableIpAddressToInterfaceRequest
impl Send for BulkWritableIpAddressToInterfaceRequest
impl Sync for BulkWritableIpAddressToInterfaceRequest
impl Unpin for BulkWritableIpAddressToInterfaceRequest
impl UnsafeUnpin for BulkWritableIpAddressToInterfaceRequest
impl UnwindSafe for BulkWritableIpAddressToInterfaceRequest
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