pub struct OpenRouterClientBuilder { /* private fields */ }
Expand description
Builder for OpenRouterClient
.
Implementations§
Source§impl OpenRouterClientBuilder
impl OpenRouterClientBuilder
pub fn base_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn api_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn provisioning_key<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn http_referer<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn x_title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<OpenRouterClient, OpenRouterError>
pub fn build(&self) -> Result<OpenRouterClient, OpenRouterError>
Trait Implementations§
Source§impl Clone for OpenRouterClientBuilder
impl Clone for OpenRouterClientBuilder
Source§fn clone(&self) -> OpenRouterClientBuilder
fn clone(&self) -> OpenRouterClientBuilder
Returns a copy 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 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