pub struct NetworkRateLimiterConfigPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for NetworkRateLimiterConfig.
Implementations§
Source§impl NetworkRateLimiterConfigPatch
impl NetworkRateLimiterConfigPatch
Sourcepub fn egress(self, value: RateLimiterConfig) -> Self
pub fn egress(self, value: RateLimiterConfig) -> Self
Set the egress field in this patch.
Sourcepub fn ingress(self, value: RateLimiterConfig) -> Self
pub fn ingress(self, value: RateLimiterConfig) -> Self
Set the ingress field in this patch.
Sourcepub fn clear_egress(self) -> Self
pub fn clear_egress(self) -> Self
Remove egress from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_ingress(self) -> Self
pub fn clear_ingress(self) -> Self
Remove ingress from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn apply_to(self, target: &mut NetworkRateLimiterConfig)
pub fn apply_to(self, target: &mut NetworkRateLimiterConfig)
Apply every present field to an existing value.
Sourcepub fn from_present_fields(value: NetworkRateLimiterConfig) -> Self
pub fn from_present_fields(value: NetworkRateLimiterConfig) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for NetworkRateLimiterConfigPatch
impl Clone for NetworkRateLimiterConfigPatch
Source§fn clone(&self) -> NetworkRateLimiterConfigPatch
fn clone(&self) -> NetworkRateLimiterConfigPatch
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 Default for NetworkRateLimiterConfigPatch
impl Default for NetworkRateLimiterConfigPatch
Source§fn default() -> NetworkRateLimiterConfigPatch
fn default() -> NetworkRateLimiterConfigPatch
Returns the “default value” for a type. Read more
Source§impl From<NetworkRateLimiterConfig> for NetworkRateLimiterConfigPatch
impl From<NetworkRateLimiterConfig> for NetworkRateLimiterConfigPatch
Source§fn from(value: NetworkRateLimiterConfig) -> Self
fn from(value: NetworkRateLimiterConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkRateLimiterConfigPatch
impl RefUnwindSafe for NetworkRateLimiterConfigPatch
impl Send for NetworkRateLimiterConfigPatch
impl Sync for NetworkRateLimiterConfigPatch
impl Unpin for NetworkRateLimiterConfigPatch
impl UnsafeUnpin for NetworkRateLimiterConfigPatch
impl UnwindSafe for NetworkRateLimiterConfigPatch
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