#[non_exhaustive]pub struct NetworkPatch {
pub iface_id: IfaceId,
pub rx_rate_limiter: Option<Value>,
pub tx_rate_limiter: Option<Value>,
}Expand description
Validated /network-interfaces/{id} PATCH body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.iface_id: IfaceIdValidated interface ID.
rx_rate_limiter: Option<Value>Replacement RX rate limiter.
tx_rate_limiter: Option<Value>Replacement TX rate limiter.
Trait Implementations§
Source§impl Clone for NetworkPatch
impl Clone for NetworkPatch
Source§fn clone(&self) -> NetworkPatch
fn clone(&self) -> NetworkPatch
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 NetworkPatch
impl Debug for NetworkPatch
Source§impl Serialize for NetworkPatch
impl Serialize for NetworkPatch
Source§impl TryFrom<RawNetworkPatch> for NetworkPatch
impl TryFrom<RawNetworkPatch> for NetworkPatch
Auto Trait Implementations§
impl Freeze for NetworkPatch
impl RefUnwindSafe for NetworkPatch
impl Send for NetworkPatch
impl Sync for NetworkPatch
impl Unpin for NetworkPatch
impl UnsafeUnpin for NetworkPatch
impl UnwindSafe for NetworkPatch
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