pub struct Client { /* private fields */ }
Expand description
IP Policy Rules are the IPv4 or IPv6 CIDRs entries that make up an IP Policy.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &IPPolicyRuleCreate,
) -> Result<IPPolicyRule, Error>
pub async fn create( &self, req: &IPPolicyRuleCreate, ) -> Result<IPPolicyRule, Error>
Create a new IP policy rule attached to an IP Policy.
Sourcepub async fn get(&self, id: &str) -> Result<IPPolicyRule, Error>
pub async fn get(&self, id: &str) -> Result<IPPolicyRule, Error>
Get detailed information about an IP policy rule by ID.
Sourcepub async fn update(
&self,
req: &IPPolicyRuleUpdate,
) -> Result<IPPolicyRule, Error>
pub async fn update( &self, req: &IPPolicyRuleUpdate, ) -> Result<IPPolicyRule, Error>
Update attributes of an IP policy rule by ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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