pub struct AntigravityConfig {
pub enabled: bool,
pub agy_binary: Option<PathBuf>,
pub oauth_client_id: Option<String>,
pub oauth_client_secret: Option<String>,
pub ide_language_server: bool,
}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§agy_binary: Option<PathBuf>Exact agy executable to run for quota and saved-session renewal.
Unset preserves discovery on PATH and in ~/.local/bin.
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.
ide_language_server: boolProbe the Antigravity IDE’s own language server as a quota source
(default true). Set false when the IDE is installed but its sign-in is
managed separately: a signed-out IDE language server answers 401/403,
which outranks and masks a working agy session (#405).
Trait Implementations§
Source§impl Clone for AntigravityConfig
impl Clone for AntigravityConfig
Source§impl Debug for AntigravityConfig
impl Debug for AntigravityConfig
Source§impl Default for AntigravityConfig
impl Default for AntigravityConfig
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>,
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
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> ⓘ
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> ⓘ
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