Struct ngrok_api::types::EndpointPolicy
source · pub struct EndpointPolicy {
pub enabled: Option<bool>,
pub inbound: Vec<EndpointRule>,
pub outbound: Vec<EndpointRule>,
}
Fields§
§enabled: Option<bool>
true
if the module will be applied to traffic, false
to disable. default
true
if unspecified
inbound: Vec<EndpointRule>
the inbound rules of the traffic policy.
outbound: Vec<EndpointRule>
the outbound rules on the traffic policy.
Trait Implementations§
source§impl Clone for EndpointPolicy
impl Clone for EndpointPolicy
source§fn clone(&self) -> EndpointPolicy
fn clone(&self) -> EndpointPolicy
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 EndpointPolicy
impl Debug for EndpointPolicy
source§impl Default for EndpointPolicy
impl Default for EndpointPolicy
source§fn default() -> EndpointPolicy
fn default() -> EndpointPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EndpointPolicy
impl<'de> Deserialize<'de> for EndpointPolicy
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 EndpointPolicy
impl RefUnwindSafe for EndpointPolicy
impl Send for EndpointPolicy
impl Sync for EndpointPolicy
impl Unpin for EndpointPolicy
impl UnwindSafe for EndpointPolicy
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