Struct hrobot::api::ip::TrafficWarnings
source · pub struct TrafficWarnings {
pub hourly: ByteSize,
pub daily: ByteSize,
pub monthly: ByteSize,
}Expand description
Traffic warning configuration.
Fields§
§hourly: ByteSizeProduce a warning if the hourly traffic exceeds this limit.
daily: ByteSizeProduce a warning if the daily traffic exceeds this limit.
monthly: ByteSizeProduce a warning if the monthly traffic exceeds this limit.
Trait Implementations§
source§impl Clone for TrafficWarnings
impl Clone for TrafficWarnings
source§fn clone(&self) -> TrafficWarnings
fn clone(&self) -> TrafficWarnings
Returns a copy 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 TrafficWarnings
impl Debug for TrafficWarnings
source§impl Default for TrafficWarnings
impl Default for TrafficWarnings
source§impl<'de> Deserialize<'de> for TrafficWarnings
impl<'de> Deserialize<'de> for TrafficWarnings
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 TrafficWarnings
impl PartialEq for TrafficWarnings
source§fn eq(&self, other: &TrafficWarnings) -> bool
fn eq(&self, other: &TrafficWarnings) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TrafficWarnings
impl StructuralPartialEq for TrafficWarnings
Auto Trait Implementations§
impl Freeze for TrafficWarnings
impl RefUnwindSafe for TrafficWarnings
impl Send for TrafficWarnings
impl Sync for TrafficWarnings
impl Unpin for TrafficWarnings
impl UnwindSafe for TrafficWarnings
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.