pub struct StorageEntry {
pub key: String,
pub value: String,
pub flags: Vec<String>,
pub sensitive: bool,
}Expand description
One entry returned by Engine::storage. Cookies use the optional
flag fields; key/value stores use only key and value; IndexedDB
uses key (db name) and value (version + object store names
joined). The agent doesn’t need a sum type — a uniform shape keeps
the wire format simple.
Fields§
§key: String§value: String§flags: Vec<String>Cookies only. secure, httponly, samesite=..., expires=....
sensitive: boolTrue when the value should be redacted unless --unsafe-log.
Cookies match the auth-header redactor; storage entries match
keys like token, auth, secret, key (in their name).
Trait Implementations§
Source§impl Clone for StorageEntry
impl Clone for StorageEntry
Source§fn clone(&self) -> StorageEntry
fn clone(&self) -> StorageEntry
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 moreAuto Trait Implementations§
impl Freeze for StorageEntry
impl RefUnwindSafe for StorageEntry
impl Send for StorageEntry
impl Sync for StorageEntry
impl Unpin for StorageEntry
impl UnsafeUnpin for StorageEntry
impl UnwindSafe for StorageEntry
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