pub struct OpenRouterClientBuilder { /* private fields */ }Implementations§
Source§impl OpenRouterClientBuilder
impl OpenRouterClientBuilder
pub fn new() -> Self
pub fn api_key(self, key: impl Into<String>) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
pub fn http_referer(self, referer: impl Into<String>) -> Self
pub fn x_title(self, title: impl Into<String>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn build(self) -> Result<OpenRouterClient>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenRouterClientBuilder
impl RefUnwindSafe for OpenRouterClientBuilder
impl Send for OpenRouterClientBuilder
impl Sync for OpenRouterClientBuilder
impl Unpin for OpenRouterClientBuilder
impl UnwindSafe for OpenRouterClientBuilder
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