[][src]Struct nextcloud_passwords_client::settings::SettingsApi

pub struct SettingsApi<'a> { /* fields omitted */ }

Settings API methods

Implementations

impl<'a> SettingsApi<'a>[src]

pub fn get(&self) -> SettingsFetcher<'_>[src]

Fetch one setting Notes

  • If the setting is not defined, it will default to null
  • Accessing an undefined setting in the client scope will not create it

pub fn reset(&self) -> SettingReset<'_>[src]

Notes

  • If you reset a setting in the client scope, it will be deleted and no longer appear in the list action
  • If the setting does not exist, the value will be null

pub fn get_multiple(&self) -> SettingsBuilder<'_>[src]

Fetch multiple settings Notes

  • If the setting is not defined, it will default to null
  • Accessing an undefined setting in the client scope will not create it

pub async fn get_all<'_>(&'_ self) -> Result<AllSettings, Error>[src]

Fetch all the settings

pub async fn set<'_>(
    &'_ self,
    settings: Settings
) -> Result<Vec<SettingValue>, Error>
[src]

Set the value of a writable setting

pub async fn set_client<D: Serialize + DeserializeOwned, '_>(
    &'_ self,
    name: ClientSettings,
    value: D
) -> Result<D, Error>
[src]

Set the value of a client setting Note

  • If the size limitations of the client scope are exceeded, an error will be returned

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SettingsApi<'a>

impl<'a> Send for SettingsApi<'a>

impl<'a> Sync for SettingsApi<'a>

impl<'a> Unpin for SettingsApi<'a>

impl<'a> !UnwindSafe for SettingsApi<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.