pub struct ForgeClientBuilder { /* private fields */ }Expand description
Builder for ForgeClient.
Implementations§
Source§impl ForgeClientBuilder
impl ForgeClientBuilder
Sourcepub fn default_model(self, model: impl Into<String>) -> Self
pub fn default_model(self, model: impl Into<String>) -> Self
Set the default model.
Sourcepub fn timeout_secs(self, secs: u64) -> Self
pub fn timeout_secs(self, secs: u64) -> Self
Set the timeout in seconds.
Sourcepub fn build(self) -> ForgeClient
pub fn build(self) -> ForgeClient
Build the synchronous client.
Sourcepub fn build_async(self) -> AsyncForgeClient
pub fn build_async(self) -> AsyncForgeClient
Build the async client.
Trait Implementations§
Source§impl Debug for ForgeClientBuilder
impl Debug for ForgeClientBuilder
Source§impl Default for ForgeClientBuilder
impl Default for ForgeClientBuilder
Source§fn default() -> ForgeClientBuilder
fn default() -> ForgeClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForgeClientBuilder
impl RefUnwindSafe for ForgeClientBuilder
impl Send for ForgeClientBuilder
impl Sync for ForgeClientBuilder
impl Unpin for ForgeClientBuilder
impl UnsafeUnpin for ForgeClientBuilder
impl UnwindSafe for ForgeClientBuilder
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