pub struct RemoteConfig { /* private fields */ }Implementations§
Source§impl RemoteConfig
A remote config is always part of a calendar config
so it doesn’t need its own ::load and ::write methods
impl RemoteConfig
A remote config is always part of a calendar config so it doesn’t need its own ::load and ::write methods
pub fn new(provider_slug: ProviderSlug, params: RemoteConfigParams) -> Self
pub fn provider_slug(&self) -> &ProviderSlug
pub fn get(&self, key: &str) -> Option<&Value>
Sourcepub fn account_identifier(&self) -> Option<&str>
pub fn account_identifier(&self) -> Option<&str>
Returns the account identifier for this remote, if present.
Looks for a {provider}_account field in the config
(e.g., google_account, icloud_account)
Providers that have a concept of an account should include this field.
Providers without accounts (e.g., plain CalDAV servers) can omit it.
Sourcepub fn account_email(&self) -> Option<&str>
pub fn account_email(&self) -> Option<&str>
The account’s email: {provider}_email if set, else an email-shaped account identifier.
Trait Implementations§
Source§impl Clone for RemoteConfig
impl Clone for RemoteConfig
Source§impl Debug for RemoteConfig
impl Debug for RemoteConfig
Source§impl<'de> Deserialize<'de> for RemoteConfig
impl<'de> Deserialize<'de> for RemoteConfig
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 PartialEq for RemoteConfig
impl PartialEq for RemoteConfig
Source§impl Serialize for RemoteConfig
impl Serialize for RemoteConfig
impl StructuralPartialEq for RemoteConfig
Auto Trait Implementations§
impl Freeze for RemoteConfig
impl RefUnwindSafe for RemoteConfig
impl Send for RemoteConfig
impl Sync for RemoteConfig
impl Unpin for RemoteConfig
impl UnsafeUnpin for RemoteConfig
impl UnwindSafe for RemoteConfig
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