pub enum SavedAuths {
BuiltIn(Box<HostAuth>),
Plugin {
path: PathBuf,
credentials: Vec<Credential>,
persist: bool,
refresh: Vec<SavedRefresh>,
},
Written {
path: PathBuf,
data: Vec<u8>,
},
}Expand description
What host.auth.save registers for the file it writes (Go buildAuthsFromFileData).
Variants§
BuiltIn(Box<HostAuth>)
No plugin auth provider took the file: its built-in credential.
Plugin
The credentials the plugin auth provider for the file’s type parsed, the file’s
settings applied. Possibly none: the file then has no credential. persist: the
one credential’s metadata replaces the file (Go Manager.persist with its token
storage); otherwise the file keeps the saved bytes.
Written
Nothing yet: the saving plugin is parsing this file, and the file’s credentials
come from that parse. data is what the save writes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SavedAuths
impl RefUnwindSafe for SavedAuths
impl Send for SavedAuths
impl Sync for SavedAuths
impl Unpin for SavedAuths
impl UnsafeUnpin for SavedAuths
impl UnwindSafe for SavedAuths
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more