pub struct AllowedIpRange {
pub description: Option<String>,
pub value: Option<String>,
}
Expand description
Allowed IP range with user-provided description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>
Optional. User-provided description. It must contain at most 300 characters.
value: Option<String>
IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1
or 192.168.0.0/16
or 2001:db8::/32
or 2001:0db8:0000:0042:0000:8a2e:0370:7334
. IP range prefixes should be properly truncated. For example, 1.2.3.4/24
should be truncated to 1.2.3.0/24
. Similarly, for IPv6, 2001:db8::1/32
should be truncated to 2001:db8::/32
.
Trait Implementations§
Source§impl Clone for AllowedIpRange
impl Clone for AllowedIpRange
Source§fn clone(&self) -> AllowedIpRange
fn clone(&self) -> AllowedIpRange
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 AllowedIpRange
impl Debug for AllowedIpRange
Source§impl Default for AllowedIpRange
impl Default for AllowedIpRange
Source§fn default() -> AllowedIpRange
fn default() -> AllowedIpRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllowedIpRange
impl<'de> Deserialize<'de> for AllowedIpRange
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 Serialize for AllowedIpRange
impl Serialize for AllowedIpRange
impl Part for AllowedIpRange
Auto Trait Implementations§
impl Freeze for AllowedIpRange
impl RefUnwindSafe for AllowedIpRange
impl Send for AllowedIpRange
impl Sync for AllowedIpRange
impl Unpin for AllowedIpRange
impl UnwindSafe for AllowedIpRange
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more