pub struct IPRestrictionCreate {
pub description: String,
pub metadata: String,
pub enforced: bool,
pub type: String,
pub ip_policy_ids: Vec<String>,
}
Fields§
§description: String
human-readable description of this IP restriction. optional, max 255 bytes.
metadata: String
arbitrary user-defined machine-readable data of this IP restriction. optional, max 4096 bytes.
enforced: bool
true if the IP restriction will be enforced. if false, only warnings will be issued
type: String
the 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_policy_ids: Vec<String>
the set of IP policy identifiers that are used to enforce the restriction
Trait Implementations§
Source§impl Clone for IPRestrictionCreate
impl Clone for IPRestrictionCreate
Source§fn clone(&self) -> IPRestrictionCreate
fn clone(&self) -> IPRestrictionCreate
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 IPRestrictionCreate
impl Debug for IPRestrictionCreate
Source§impl Default for IPRestrictionCreate
impl Default for IPRestrictionCreate
Source§fn default() -> IPRestrictionCreate
fn default() -> IPRestrictionCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IPRestrictionCreate
impl<'de> Deserialize<'de> for IPRestrictionCreate
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 IPRestrictionCreate
impl RefUnwindSafe for IPRestrictionCreate
impl Send for IPRestrictionCreate
impl Sync for IPRestrictionCreate
impl Unpin for IPRestrictionCreate
impl UnwindSafe for IPRestrictionCreate
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