pub struct IPRestriction {
pub id: String,
pub uri: String,
pub created_at: String,
pub description: String,
pub metadata: String,
pub enforced: bool,
pub type: String,
pub ip_policies: Vec<Ref>,
}Fields§
§id: Stringunique identifier for this IP restriction
uri: StringURI of the IP restriction API resource
created_at: Stringtimestamp when the IP restriction was created, RFC 3339 format
description: Stringhuman-readable description of this IP restriction. optional, max 255 bytes.
metadata: Stringarbitrary user-defined machine-readable data of this IP restriction. optional, max 4096 bytes.
enforced: booltrue if the IP restriction will be enforced. if false, only warnings will be issued
type: Stringthe type of IP restriction. this defines what traffic will be restricted with
the attached policies. four values are currently supported: dashboard, api,
agent, and endpoints
ip_policies: Vec<Ref>the set of IP policies that are used to enforce the restriction
Trait Implementations§
Source§impl Clone for IPRestriction
impl Clone for IPRestriction
Source§fn clone(&self) -> IPRestriction
fn clone(&self) -> IPRestriction
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 Debug for IPRestriction
impl Debug for IPRestriction
Source§impl Default for IPRestriction
impl Default for IPRestriction
Source§fn default() -> IPRestriction
fn default() -> IPRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IPRestriction
impl<'de> Deserialize<'de> for IPRestriction
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
Auto Trait Implementations§
impl Freeze for IPRestriction
impl RefUnwindSafe for IPRestriction
impl Send for IPRestriction
impl Sync for IPRestriction
impl Unpin for IPRestriction
impl UnwindSafe for IPRestriction
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