pub struct StorageParams {
pub action: StorageAction,
pub storage_type: Option<StorageType>,
pub key: Option<String>,
pub value: Option<Value>,
pub webview_label: Option<String>,
}Expand description
Parameters for the compound storage tool (get, set, delete, get_cookies).
Fields§
§action: StorageActionAction to perform: get, set, delete, get_cookies.
storage_type: Option<StorageType>Storage type for get/set/delete. Defaults to local if omitted.
key: Option<String>Key to read, write, or delete.
value: Option<Value>Value to store (for set action). Will be JSON-serialized if not a string.
webview_label: Option<String>Target webview label.
Trait Implementations§
Source§impl Debug for StorageParams
impl Debug for StorageParams
Source§impl<'de> Deserialize<'de> for StorageParams
impl<'de> Deserialize<'de> for StorageParams
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
Source§impl JsonSchema for StorageParams
impl JsonSchema for StorageParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for StorageParams
impl RefUnwindSafe for StorageParams
impl Send for StorageParams
impl Sync for StorageParams
impl Unpin for StorageParams
impl UnsafeUnpin for StorageParams
impl UnwindSafe for StorageParams
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