pub struct VertexAiBackend { /* private fields */ }Expand description
Configuration for the Vertex AI Gemini backend.
Mirrors VertexAIBackend in packages/ai/src/backend.ts.
Implementations§
Source§impl VertexAiBackend
impl VertexAiBackend
Sourcepub fn new<S: Into<String>>(location: S) -> Self
pub fn new<S: Into<String>>(location: S) -> Self
Creates a configuration for the Vertex AI backend.
When location is empty the default us-central1 region is used, matching
the TypeScript implementation.
Sourcepub fn backend_type(&self) -> BackendType
pub fn backend_type(&self) -> BackendType
Returns the backend type tag.
Trait Implementations§
Source§impl Clone for VertexAiBackend
impl Clone for VertexAiBackend
Source§fn clone(&self) -> VertexAiBackend
fn clone(&self) -> VertexAiBackend
Returns a duplicate of the value. Read more
1.0.0 · 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 VertexAiBackend
impl Debug for VertexAiBackend
Source§impl Default for VertexAiBackend
impl Default for VertexAiBackend
Source§impl PartialEq for VertexAiBackend
impl PartialEq for VertexAiBackend
impl Eq for VertexAiBackend
impl StructuralPartialEq for VertexAiBackend
Auto Trait Implementations§
impl Freeze for VertexAiBackend
impl RefUnwindSafe for VertexAiBackend
impl Send for VertexAiBackend
impl Sync for VertexAiBackend
impl Unpin for VertexAiBackend
impl UnwindSafe for VertexAiBackend
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.