pub struct LinkSecretRef<'a> {
pub reference: &'a str,
pub fragment: Option<&'a str>,
pub link_key: Option<LinkKeyBytes>,
}Expand description
An htree reference split from its link secret.
Fields§
§reference: &'a strThe reference without query string or fragment.
fragment: Option<&'a str>A fragment other than k=, such as private.
link_key: Option<LinkKeyBytes>Implementations§
Source§impl<'a> LinkSecretRef<'a>
impl<'a> LinkSecretRef<'a>
Sourcepub fn parse(input: &'a str) -> Result<Self, LinkSecretError>
pub fn parse(input: &'a str) -> Result<Self, LinkSecretError>
Reads #k=<hex> and a locally accepted ?k=<hex>. Query strings are
not part of the tree path, so the whole query is left out of reference.
Sourcepub fn with_link_key(self, hex: Option<&str>) -> Result<Self, LinkSecretError>
pub fn with_link_key(self, hex: Option<&str>) -> Result<Self, LinkSecretError>
Adds a separately supplied secret, rejecting one that differs.
Trait Implementations§
Source§impl<'a> Clone for LinkSecretRef<'a>
impl<'a> Clone for LinkSecretRef<'a>
Source§impl<'a> Debug for LinkSecretRef<'a>
impl<'a> Debug for LinkSecretRef<'a>
impl<'a> Eq for LinkSecretRef<'a>
Source§impl<'a> PartialEq for LinkSecretRef<'a>
impl<'a> PartialEq for LinkSecretRef<'a>
impl<'a> StructuralPartialEq for LinkSecretRef<'a>
Auto Trait Implementations§
impl<'a> Forget for LinkSecretRef<'a>
impl<'a> Freeze for LinkSecretRef<'a>
impl<'a> Move for LinkSecretRef<'a>
impl<'a> RefUnwindSafe for LinkSecretRef<'a>
impl<'a> Send for LinkSecretRef<'a>
impl<'a> Sync for LinkSecretRef<'a>
impl<'a> Unpin for LinkSecretRef<'a>
impl<'a> UnsafeUnpin for LinkSecretRef<'a>
impl<'a> UnwindSafe for LinkSecretRef<'a>
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