pub struct ContextOptions {
pub protect_protocol: bool,
}Expand description
Options for encoding and decoding a Context.
Fields§
§protect_protocol: boolIf true, carriage returns in credential values are rejected to protect credential-protocol parsing.
NUL bytes and newlines are always rejected.
Trait Implementations§
Source§impl Clone for ContextOptions
impl Clone for ContextOptions
Source§fn clone(&self) -> ContextOptions
fn clone(&self) -> ContextOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextOptions
Source§impl Debug for ContextOptions
impl Debug for ContextOptions
Source§impl Default for ContextOptions
impl Default for ContextOptions
impl Eq for ContextOptions
Source§impl PartialEq for ContextOptions
impl PartialEq for ContextOptions
impl StructuralPartialEq for ContextOptions
Auto Trait Implementations§
impl Freeze for ContextOptions
impl RefUnwindSafe for ContextOptions
impl Send for ContextOptions
impl Sync for ContextOptions
impl Unpin for ContextOptions
impl UnsafeUnpin for ContextOptions
impl UnwindSafe for ContextOptions
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