pub struct ModelConfig {
pub gemini_api_endpoint: Option<GeminiAPIEndpoint>,
pub vertex_endpoint: Option<VertexEndpoint>,
pub gemma_endpoint: Option<GemmaEndpoint>,
pub custom_endpoint: Option<CustomEndpoint>,
pub name: Option<String>,
pub types: Vec<ModelType>,
}Expand description
antigravity.localharness.ModelConfig
Fields§
§gemini_api_endpoint: Option<GeminiAPIEndpoint>§vertex_endpoint: Option<VertexEndpoint>§gemma_endpoint: Option<GemmaEndpoint>§custom_endpoint: Option<CustomEndpoint>§name: Option<String>§types: Vec<ModelType>Implementations§
Source§impl ModelConfig
impl ModelConfig
Sourcepub fn into_endpoint(self) -> Option<ModelConfigEndpoint>
pub fn into_endpoint(self) -> Option<ModelConfigEndpoint>
Takes the set arm of the endpoint oneof, if any.
Sourcepub fn has_endpoint(&self) -> bool
pub fn has_endpoint(&self) -> bool
True when any arm of the endpoint oneof is set.
Trait Implementations§
Source§impl Clone for ModelConfig
impl Clone for ModelConfig
Source§fn clone(&self) -> ModelConfig
fn clone(&self) -> ModelConfig
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 ModelConfig
impl Debug for ModelConfig
Source§impl Default for ModelConfig
impl Default for ModelConfig
Source§fn default() -> ModelConfig
fn default() -> ModelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelConfig
impl<'de> Deserialize<'de> for ModelConfig
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 ModelConfig
impl PartialEq for ModelConfig
Source§impl Serialize for ModelConfig
impl Serialize for ModelConfig
impl StructuralPartialEq for ModelConfig
Auto Trait Implementations§
impl Freeze for ModelConfig
impl RefUnwindSafe for ModelConfig
impl Send for ModelConfig
impl Sync for ModelConfig
impl Unpin for ModelConfig
impl UnsafeUnpin for ModelConfig
impl UnwindSafe for ModelConfig
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