pub struct ViolationActionBuilder { /* private fields */ }Expand description
Fluent builder for a ViolationAction.
Implementations§
Source§impl ViolationActionBuilder
impl ViolationActionBuilder
Sourcepub fn from_action(action: ViolationAction) -> Self
pub fn from_action(action: ViolationAction) -> Self
Start building from an existing action.
Sourcepub fn block_and_log(self) -> Self
pub fn block_and_log(self) -> Self
Block the request and emit a warning log.
Sourcepub fn block_and_terminate(self) -> Self
pub fn block_and_terminate(self) -> Self
Block the request and terminate the sandbox.
Sourcepub fn passthrough_host(self, host: impl Into<String>) -> Self
pub fn passthrough_host(self, host: impl Into<String>) -> Self
Allow a host to receive secret placeholders without substitution.
Sourcepub fn passthrough_host_pattern(self, pattern: impl Into<String>) -> Self
pub fn passthrough_host_pattern(self, pattern: impl Into<String>) -> Self
Allow hosts matching a wildcard pattern to receive secret placeholders without substitution.
Sourcepub fn passthrough_all_hosts(self, i_understand_the_risk: bool) -> Self
pub fn passthrough_all_hosts(self, i_understand_the_risk: bool) -> Self
Allow any host to receive secret placeholders without substitution.
Sourcepub fn build(self) -> ViolationAction
pub fn build(self) -> ViolationAction
Consume the builder and return the action.
Trait Implementations§
Source§impl Default for ViolationActionBuilder
impl Default for ViolationActionBuilder
Source§fn default() -> ViolationActionBuilder
fn default() -> ViolationActionBuilder
Returns the “default value” for a type. Read more
Source§impl From<ViolationAction> for ViolationActionBuilder
impl From<ViolationAction> for ViolationActionBuilder
Source§fn from(action: ViolationAction) -> Self
fn from(action: ViolationAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ViolationActionBuilder
impl RefUnwindSafe for ViolationActionBuilder
impl Send for ViolationActionBuilder
impl Sync for ViolationActionBuilder
impl Unpin for ViolationActionBuilder
impl UnsafeUnpin for ViolationActionBuilder
impl UnwindSafe for ViolationActionBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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