pub struct AntigravityConfig {
pub enabled: bool,
pub oauth_client_id: Option<String>,
pub oauth_client_secret: Option<String>,
}Expand description
Antigravity reads its quota from a usable local Antigravity product. When no
product is up — or agy requires the CSRF token it does not publish — it
falls back to the Google session Antigravity saved in the OS keyring and
talks to Cloud Code directly. Renewing that session needs Antigravity’s
OAuth client id and secret, which are not shipped in source: set them here
(they are public installed-app credentials) or the fallback only lasts as
long as the saved access token does.
Fields§
§enabled: bool§oauth_client_id: Option<String>OAuth client id used to refresh the keyring session.
oauth_client_secret: Option<String>OAuth client secret paired with oauth_client_id. An
installed-app secret is not confidential by Google’s definition, but
it is still treated as an inline credential for file-permission purposes.
Trait Implementations§
Source§impl Clone for AntigravityConfig
impl Clone for AntigravityConfig
Source§fn clone(&self) -> AntigravityConfig
fn clone(&self) -> AntigravityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AntigravityConfig
impl Debug for AntigravityConfig
Source§impl Default for AntigravityConfig
impl Default for AntigravityConfig
Source§fn default() -> AntigravityConfig
fn default() -> AntigravityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AntigravityConfigwhere
AntigravityConfig: Default,
impl<'de> Deserialize<'de> for AntigravityConfigwhere
AntigravityConfig: 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 AntigravityConfig
impl RefUnwindSafe for AntigravityConfig
impl Send for AntigravityConfig
impl Sync for AntigravityConfig
impl Unpin for AntigravityConfig
impl UnsafeUnpin for AntigravityConfig
impl UnwindSafe for AntigravityConfig
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