pub struct FormTokenSecret(/* private fields */);Expand description
A form-token secret in plaintext. Lives only in the rendered form or a short-lived cookie; only its derived lookup key is stored (RFC-007).
Implementations§
Source§impl FormTokenSecret
impl FormTokenSecret
Sourcepub fn expose(&self) -> &str
pub fn expose(&self) -> &str
Borrow the plaintext. See SecretString::expose.
Sourcepub fn as_secret(&self) -> &SecretString
pub fn as_secret(&self) -> &SecretString
Borrow the inner SecretString.
Trait Implementations§
Source§impl Clone for FormTokenSecret
impl Clone for FormTokenSecret
Source§fn clone(&self) -> FormTokenSecret
fn clone(&self) -> FormTokenSecret
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 moreSource§impl Debug for FormTokenSecret
impl Debug for FormTokenSecret
impl Eq for FormTokenSecret
Source§impl PartialEq for FormTokenSecret
impl PartialEq for FormTokenSecret
Source§fn eq(&self, other: &FormTokenSecret) -> bool
fn eq(&self, other: &FormTokenSecret) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormTokenSecret
Auto Trait Implementations§
impl Freeze for FormTokenSecret
impl RefUnwindSafe for FormTokenSecret
impl Send for FormTokenSecret
impl Sync for FormTokenSecret
impl Unpin for FormTokenSecret
impl UnsafeUnpin for FormTokenSecret
impl UnwindSafe for FormTokenSecret
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