pub struct ComputeAclUpdateEntry {
pub op: Option<String>,
pub prefix: Option<String>,
pub action: Option<String>,
}
Expand description
ComputeAclUpdateEntry : Defines the structure of an ACL update request entry.
Fields§
§op: Option<String>
One of "create", "update", or "delete" indicating the operation to perform on the update.
prefix: Option<String>
An IP prefix defined in Classless Inter-Domain Routing (CIDR) format, i.e. a valid IP address (v4 or v6) followed by a forward slash (/) and a prefix length (0-32 or 0-128, depending on address family).
action: Option<String>
The action taken on the IP address, one of "BLOCK" or "ALLOW". If using the "delete" operation, no action should be specified.
Implementations§
Source§impl ComputeAclUpdateEntry
impl ComputeAclUpdateEntry
Sourcepub fn new() -> ComputeAclUpdateEntry
pub fn new() -> ComputeAclUpdateEntry
Defines the structure of an ACL update request entry.
Trait Implementations§
Source§impl Clone for ComputeAclUpdateEntry
impl Clone for ComputeAclUpdateEntry
Source§fn clone(&self) -> ComputeAclUpdateEntry
fn clone(&self) -> ComputeAclUpdateEntry
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 ComputeAclUpdateEntry
impl Debug for ComputeAclUpdateEntry
Source§impl Default for ComputeAclUpdateEntry
impl Default for ComputeAclUpdateEntry
Source§fn default() -> ComputeAclUpdateEntry
fn default() -> ComputeAclUpdateEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComputeAclUpdateEntry
impl<'de> Deserialize<'de> for ComputeAclUpdateEntry
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 ComputeAclUpdateEntry
impl PartialEq for ComputeAclUpdateEntry
Source§impl Serialize for ComputeAclUpdateEntry
impl Serialize for ComputeAclUpdateEntry
impl StructuralPartialEq for ComputeAclUpdateEntry
Auto Trait Implementations§
impl Freeze for ComputeAclUpdateEntry
impl RefUnwindSafe for ComputeAclUpdateEntry
impl Send for ComputeAclUpdateEntry
impl Sync for ComputeAclUpdateEntry
impl Unpin for ComputeAclUpdateEntry
impl UnwindSafe for ComputeAclUpdateEntry
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