pub enum StorageCommand {
GetCookie {
name: String,
url: Option<String>,
},
SetCookie {
cookie: Cookie,
url: Option<String>,
},
DeleteCookie {
name: String,
url: Option<String>,
},
GetAllCookies {
url: Option<String>,
},
}Expand description
Storage module commands for cookie management.
Variants§
GetCookie
Get cookie by name.
SetCookie
Set cookie.
DeleteCookie
Delete cookie by name.
GetAllCookies
Get all cookies.
Trait Implementations§
Source§impl Clone for StorageCommand
impl Clone for StorageCommand
Source§fn clone(&self) -> StorageCommand
fn clone(&self) -> StorageCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 StorageCommand
impl Debug for StorageCommand
Source§impl<'de> Deserialize<'de> for StorageCommand
impl<'de> Deserialize<'de> for StorageCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StorageCommand
impl RefUnwindSafe for StorageCommand
impl Send for StorageCommand
impl Sync for StorageCommand
impl Unpin for StorageCommand
impl UnwindSafe for StorageCommand
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