[−][src]Struct nextcloud_passwords_client::settings::SettingsApi
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]
&'_ self,
settings: Settings
) -> Result<Vec<SettingValue>, Error>
Set the value of a writable setting
pub async fn set_client<D: Serialize + DeserializeOwned, '_>(
&'_ self,
name: ClientSettings,
value: D
) -> Result<D, Error>
[src]
&'_ self,
name: ClientSettings,
value: D
) -> Result<D, Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,