Struct speakeasy_rust_sdk::controller::Controller
source · [−]pub struct Controller<T: Transport> { /* private fields */ }
Expand description
Control masking, path_hint and customer_id on a per request basis
Implementations
sourceimpl<T> Controller<T>where
T: Transport + Send + Clone + 'static,
impl<T> Controller<T>where
T: Transport + Send + Clone + 'static,
sourcepub fn set_path_hint(&mut self, path_hint: &str)
pub fn set_path_hint(&mut self, path_hint: &str)
Set the path_hint request
sourcepub fn set_masking(&mut self, masking: Masking)
pub fn set_masking(&mut self, masking: Masking)
Set new masking for the request, see Masking for more
sourcepub fn set_customer_id(&mut self, customer_id: String)
pub fn set_customer_id(&mut self, customer_id: String)
Set new customer_id for the request
sourcepub fn set_max_capture_size(&mut self, max_capture_size: usize)
pub fn set_max_capture_size(&mut self, max_capture_size: usize)
Set new max_capture_size for the request, if the request or response bodies are above this, it will be dropped
Trait Implementations
sourceimpl<T: Clone + Transport> Clone for Controller<T>
impl<T: Clone + Transport> Clone for Controller<T>
sourcefn clone(&self) -> Controller<T>
fn clone(&self) -> Controller<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for Controller<T>where
T: RefUnwindSafe,
impl<T> Send for Controller<T>where
T: Send,
impl<T> Sync for Controller<T>where
T: Sync,
impl<T> Unpin for Controller<T>where
T: Unpin,
impl<T> UnwindSafe for Controller<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request