pub struct AuthRequest {
pub uri: FileUri,
pub kind: AuthKind,
pub message: Option<String>,
}Expand description
Provider authentication challenge associated with one filesystem URI.
message == None means the provider supplied no additional prompt. An empty
string is distinct and is preserved by serialization.
§Examples
use ailloli_ui_fs::{AuthKind, AuthRequest, FileUri};
let request = AuthRequest { uri: FileUri::parse("sftp://host/home")?, kind: AuthKind::UserPassword, message: None };
assert_eq!(request.message, None);Fields§
§uri: FileUriResource whose provider requires authentication.
kind: AuthKindCredential or trust decision being requested.
message: Option<String>Optional provider-facing prompt or context; None means absent.
Trait Implementations§
Source§impl Clone for AuthRequest
impl Clone for AuthRequest
Source§fn clone(&self) -> AuthRequest
fn clone(&self) -> AuthRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthRequest
impl Debug for AuthRequest
Source§impl<'de> Deserialize<'de> for AuthRequest
impl<'de> Deserialize<'de> for AuthRequest
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 AuthRequest
impl PartialEq for AuthRequest
Source§impl Serialize for AuthRequest
impl Serialize for AuthRequest
impl Eq for AuthRequest
impl StructuralPartialEq for AuthRequest
Auto Trait Implementations§
impl Freeze for AuthRequest
impl RefUnwindSafe for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnwindSafe for AuthRequest
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