pub struct SecretShape {
pub provider: &'static str,
pub prefix: &'static str,
pub charset: SecretCharset,
pub len: (u16, u16),
}Expand description
One secret shape: prefix + charset + length window. The table is
data, not code; it grows with providers, and kernel::secret::scan
plus xtask secret are its only consumers.
Fields§
§provider: &'static str§prefix: &'static str§charset: SecretCharset§len: (u16, u16)Closed interval over the length of the whole token, prefix
included. scan measures from the first byte of the prefix to
the last byte the charset admits, so a window written against the
body alone is short by prefix.len().
Trait Implementations§
Source§impl Clone for SecretShape
impl Clone for SecretShape
impl Copy for SecretShape
Source§impl Debug for SecretShape
impl Debug for SecretShape
impl Eq for SecretShape
Source§impl PartialEq for SecretShape
impl PartialEq for SecretShape
impl StructuralPartialEq for SecretShape
Auto Trait Implementations§
impl Freeze for SecretShape
impl RefUnwindSafe for SecretShape
impl Send for SecretShape
impl Sync for SecretShape
impl Unpin for SecretShape
impl UnsafeUnpin for SecretShape
impl UnwindSafe for SecretShape
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