pub struct ValidateOpts {
pub message_codec: Option<String>,
pub accept_encoding: Option<Vec<String>>,
}Expand description
Options for ConnectResponse::validate.
Fields§
§message_codec: Option<String>If given, the response message codec must match.
accept_encoding: Option<Vec<String>>If given, the response content encoding must match (or be ‘identity’).
Implementations§
Source§impl ValidateOpts
impl ValidateOpts
pub fn from_request(req: &impl ConnectRequest) -> Self
Trait Implementations§
Source§impl Clone for ValidateOpts
impl Clone for ValidateOpts
Source§fn clone(&self) -> ValidateOpts
fn clone(&self) -> ValidateOpts
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 ValidateOpts
impl Debug for ValidateOpts
Source§impl Default for ValidateOpts
impl Default for ValidateOpts
Source§fn default() -> ValidateOpts
fn default() -> ValidateOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidateOpts
impl RefUnwindSafe for ValidateOpts
impl Send for ValidateOpts
impl Sync for ValidateOpts
impl Unpin for ValidateOpts
impl UnwindSafe for ValidateOpts
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