Skip to main content

ConfiguratePayload

Struct ConfiguratePayload 

Source
pub struct ConfiguratePayload {
Show 16 fields pub file_name: Option<String>, pub base_dir: Option<BaseDirectory>, pub options: Option<PathOptions>, pub provider: Option<ProviderPayload>, pub schema_columns: Vec<SqliteColumn>, pub name: Option<String>, pub dir: Option<BaseDirectory>, pub dir_name: Option<String>, pub path: Option<String>, pub format: Option<StorageFormat>, pub encryption_key: Option<String>, pub data: Option<Value>, pub keyring_entries: Option<Vec<KeyringEntry>>, pub keyring_options: Option<KeyringOptions>, pub with_unlock: bool, pub return_data: Option<bool>,
}
Expand description

Unified payload sent from TypeScript side for create/load/save/delete.

This struct intentionally keeps both new and legacy fields so one minor version can accept old callers while normalizing into one internal model.

Fields§

§file_name: Option<String>§base_dir: Option<BaseDirectory>§options: Option<PathOptions>§provider: Option<ProviderPayload>§schema_columns: Vec<SqliteColumn>§name: Option<String>§dir: Option<BaseDirectory>§dir_name: Option<String>§path: Option<String>§format: Option<StorageFormat>§encryption_key: Option<String>§data: Option<Value>§keyring_entries: Option<Vec<KeyringEntry>>§keyring_options: Option<KeyringOptions>§with_unlock: bool§return_data: Option<bool>

Whether create/save should return the resulting config data. Defaults to true for backward compatibility.

Implementations§

Trait Implementations§

Source§

impl Debug for ConfiguratePayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ConfiguratePayload

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<'de, D, R> CommandArg<'de, R> for D
where D: Deserialize<'de>, R: Runtime,

Source§

fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>

Derives an instance of Self from the CommandItem. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ScopeObject for T
where T: Send + Sync + Debug + DeserializeOwned + 'static,

Source§

type Error = Error

The error type.
Source§

fn deserialize<R>( _app: &AppHandle<R>, raw: Value, ) -> Result<T, <T as ScopeObject>::Error>
where R: Runtime,

Deserialize the raw scope value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,