pub struct SettingsFetcher<'api> { /* private fields */ }
Expand description
Fetch a single setting
Implementations§
Source§impl<'api> SettingsFetcher<'api>
impl<'api> SettingsFetcher<'api>
pub async fn password_strength(&self) -> Result<i8, Error>
pub async fn password_contains_numbers(&self) -> Result<bool, Error>
pub async fn password_contains_special(&self) -> Result<bool, Error>
pub async fn check_for_duplicates(&self) -> Result<bool, Error>
pub async fn check_for_old_passwords(&self) -> Result<i64, Error>
pub async fn notify_security_by_mail(&self) -> Result<bool, Error>
pub async fn notify_security_by_notification(&self) -> Result<bool, Error>
pub async fn notifiy_errors_by_notification(&self) -> Result<bool, Error>
pub async fn server_side_encryption(&self) -> Result<i8, Error>
pub async fn client_side_encryption(&self) -> Result<i8, Error>
pub async fn session_lifetime(&self) -> Result<u64, Error>
pub async fn version(&self) -> Result<String, Error>
pub async fn base_url(&self) -> Result<Url, Error>
pub async fn base_url_web_dav(&self) -> Result<Url, Error>
pub async fn sharing(&self) -> Result<bool, Error>
pub async fn resharing(&self) -> Result<bool, Error>
pub async fn autocomplete(&self) -> Result<bool, Error>
pub async fn sharing_types(&self) -> Result<Vec<String>, Error>
pub async fn primary_color(&self) -> Result<Color, Error>
pub async fn text_color(&self) -> Result<Color, Error>
pub async fn background_color(&self) -> Result<Color, Error>
pub async fn background_theme(&self) -> Result<Url, Error>
pub async fn logo(&self) -> Result<Url, Error>
pub async fn label(&self) -> Result<String, Error>
pub async fn app_icon(&self) -> Result<Url, Error>
pub async fn folder_icon(&self) -> Result<Url, Error>
Sourcepub async fn client_setting<D: DeserializeOwned>(
&self,
client_setting: ClientSettings,
) -> Result<Option<D>, Error>
pub async fn client_setting<D: DeserializeOwned>( &self, client_setting: ClientSettings, ) -> Result<Option<D>, Error>
Note
- The client scope allows keys with up to 48 characters, excluding client.
- The client scope allows values with a maximum length of 128 characters
- The client scope is shared between all clients
Sourcepub async fn from_variant(
&self,
variant: SettingVariant,
) -> Result<SettingValue, Error>
pub async fn from_variant( &self, variant: SettingVariant, ) -> Result<SettingValue, Error>
Fetch setting (expected SettingVariant::Client) from it’s name
Auto Trait Implementations§
impl<'api> Freeze for SettingsFetcher<'api>
impl<'api> !RefUnwindSafe for SettingsFetcher<'api>
impl<'api> Send for SettingsFetcher<'api>
impl<'api> Sync for SettingsFetcher<'api>
impl<'api> Unpin for SettingsFetcher<'api>
impl<'api> !UnwindSafe for SettingsFetcher<'api>
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