pub struct GoaAccount { /* private fields */ }Expand description
A Nextcloud or ownCloud account discovered via GNOME Online Accounts.
This type holds account metadata along with assembled BasicAuth credentials
retrieved from the desktop session’s secure credential store.
Implementations§
Source§impl GoaAccount
impl GoaAccount
Sourcepub fn new(
id: impl Into<String>,
username: impl Into<String>,
server_url: ServerUrl,
auth: BasicAuth,
presentation_identity: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, username: impl Into<String>, server_url: ServerUrl, auth: BasicAuth, presentation_identity: impl Into<String>, ) -> Self
Creates a new GoaAccount.
Sourcepub fn server_url(&self) -> &ServerUrl
pub fn server_url(&self) -> &ServerUrl
The base URL of the Nextcloud instance.
Sourcepub fn presentation_identity(&self) -> &str
pub fn presentation_identity(&self) -> &str
Presentation identity suitable for displaying in a user interface.
Trait Implementations§
Source§impl Clone for GoaAccount
impl Clone for GoaAccount
Auto Trait Implementations§
impl Freeze for GoaAccount
impl RefUnwindSafe for GoaAccount
impl Send for GoaAccount
impl Sync for GoaAccount
impl Unpin for GoaAccount
impl UnsafeUnpin for GoaAccount
impl UnwindSafe for GoaAccount
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