pub struct DroidConfig {
pub enabled: bool,
pub cli_renewal: bool,
pub cli_path: Option<PathBuf>,
}Expand description
Factory Droid (droid CLI) quota — reuses the login the CLI keeps in the
Linux Secret Service keyring, read-only. The provider is opt-in and takes
no key: it only reads the CLI’s documented ~/.factory store.
Fields§
§enabled: bool§cli_renewal: boolWhen the login is about to expire, run droid doctor --checks auth
so the CLI renews it itself (at most every 15 minutes). Off by
default — renewal is opt-in; an expired login is left to the user,
who runs droid once.
cli_path: Option<PathBuf>The droid executable for that renewal; droid on PATH by default.
Trait Implementations§
Source§impl Clone for DroidConfig
impl Clone for DroidConfig
Source§impl Debug for DroidConfig
impl Debug for DroidConfig
Source§impl Default for DroidConfig
impl Default for DroidConfig
Source§impl<'de> Deserialize<'de> for DroidConfigwhere
DroidConfig: Default,
impl<'de> Deserialize<'de> for DroidConfigwhere
DroidConfig: Default,
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
Auto Trait Implementations§
impl Freeze for DroidConfig
impl RefUnwindSafe for DroidConfig
impl Send for DroidConfig
impl Sync for DroidConfig
impl Unpin for DroidConfig
impl UnsafeUnpin for DroidConfig
impl UnwindSafe for DroidConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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