pub struct ParamValue<'i> { /* private fields */ }
Expand description
Parsed challenge parameter value used within ChallengeRef
.
Implementations§
source§impl<'i> ParamValue<'i>
impl<'i> ParamValue<'i>
sourcepub fn try_from_escaped(escaped: &'i str) -> Result<Self, String>
pub fn try_from_escaped(escaped: &'i str) -> Result<Self, String>
Tries to create a new ParamValue
from an escaped sequence, primarily for testing.
Validates the sequence and counts the number of escapes.
sourcepub fn append_unescaped(&self, to: &mut String)
pub fn append_unescaped(&self, to: &mut String)
Appends the unescaped form of this parameter to the supplied string.
sourcepub fn unescaped_len(&self) -> usize
pub fn unescaped_len(&self) -> usize
Returns the unescaped length of this parameter; cheap.
sourcepub fn to_unescaped(&self) -> String
pub fn to_unescaped(&self) -> String
Returns the unescaped form of this parameter as a fresh String
.
sourcepub fn as_escaped(&self) -> &'i str
pub fn as_escaped(&self) -> &'i str
Returns the escaped string, unquoted.
Trait Implementations§
source§impl<'i> Clone for ParamValue<'i>
impl<'i> Clone for ParamValue<'i>
source§fn clone(&self) -> ParamValue<'i>
fn clone(&self) -> ParamValue<'i>
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<'i> Debug for ParamValue<'i>
impl<'i> Debug for ParamValue<'i>
source§impl<'i> PartialEq for ParamValue<'i>
impl<'i> PartialEq for ParamValue<'i>
impl<'i> Copy for ParamValue<'i>
impl<'i> Eq for ParamValue<'i>
impl<'i> StructuralPartialEq for ParamValue<'i>
Auto Trait Implementations§
impl<'i> Freeze for ParamValue<'i>
impl<'i> RefUnwindSafe for ParamValue<'i>
impl<'i> Send for ParamValue<'i>
impl<'i> Sync for ParamValue<'i>
impl<'i> Unpin for ParamValue<'i>
impl<'i> UnwindSafe for ParamValue<'i>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)