pub struct SecretViewerState {
pub name: String,
pub fields: Vec<(String, String)>,
pub revealed: bool,
pub selected: usize,
pub scroll_offset: usize,
pub status: Option<String>,
}Expand description
State for the secret-viewer dialog overlay.
Fields§
§name: StringVault key name of the credential
fields: Vec<(String, String)>Decrypted (label, value) pairs
revealed: boolWhether the values are currently revealed (unmasked)
selected: usizeWhich field is highlighted (for copying)
scroll_offset: usizeScroll offset when the list is longer than the dialog
status: Option<String>Transient status message (e.g. “Copied!”)
Auto Trait Implementations§
impl Freeze for SecretViewerState
impl RefUnwindSafe for SecretViewerState
impl Send for SecretViewerState
impl Sync for SecretViewerState
impl Unpin for SecretViewerState
impl UnwindSafe for SecretViewerState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more