pub enum ClientMode {
Standalone,
Gateway {
base_url: String,
},
}Expand description
Client operation mode.
Defines whether the client operates in standalone mode (direct provider communication) or gateway mode (through the Ultrafast Gateway).
§Example
let standalone_mode = ClientMode::Standalone;
let gateway_mode = ClientMode::Gateway {
base_url: "http://localhost:3000".to_string(),
};Variants§
Standalone
Direct communication with AI providers
Gateway
Communication through the Ultrafast Gateway
Trait Implementations§
Source§impl Clone for ClientMode
impl Clone for ClientMode
Source§fn clone(&self) -> ClientMode
fn clone(&self) -> ClientMode
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 moreAuto Trait Implementations§
impl Freeze for ClientMode
impl RefUnwindSafe for ClientMode
impl Send for ClientMode
impl Sync for ClientMode
impl Unpin for ClientMode
impl UnwindSafe for ClientMode
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