pub struct VlmBackend {
pub endpoint: String,
pub model: String,
pub source: String,
}Fields§
§endpoint: StringEndpoint for chat-completion (Ollama-compatible).
model: StringModel name to send in the request body.
source: StringSource — "ollama", "openai", etc. — for logging/telemetry.
Trait Implementations§
Source§impl Clone for VlmBackend
impl Clone for VlmBackend
Source§fn clone(&self) -> VlmBackend
fn clone(&self) -> VlmBackend
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 VlmBackend
impl Debug for VlmBackend
Source§impl<'de> Deserialize<'de> for VlmBackend
impl<'de> Deserialize<'de> for VlmBackend
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 VlmBackend
impl RefUnwindSafe for VlmBackend
impl Send for VlmBackend
impl Sync for VlmBackend
impl Unpin for VlmBackend
impl UnsafeUnpin for VlmBackend
impl UnwindSafe for VlmBackend
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