pub struct OriginClientBuilder { /* private fields */ }Expand description
Builder for configuring an OriginClient.
Implementations§
Source§impl OriginClientBuilder
impl OriginClientBuilder
pub fn new(api_key: impl Into<String>) -> Self
Sourcepub fn search_url(self, url: impl Into<String>) -> Self
pub fn search_url(self, url: impl Into<String>) -> Self
Override the AI Search base URL.
Sourcepub fn cognee_url(self, url: impl Into<String>) -> Self
pub fn cognee_url(self, url: impl Into<String>) -> Self
Override the Cognee API base URL.
Sourcepub fn cognee_token(self, token: impl Into<String>) -> Self
pub fn cognee_token(self, token: impl Into<String>) -> Self
Use a separate ca_xxx token for Cognee (defaults to main api_key).
Sourcepub fn http_client(self, client: Client) -> Self
pub fn http_client(self, client: Client) -> Self
Use a custom reqwest::Client for all services.
Sourcepub fn build(self) -> OriginClient
pub fn build(self) -> OriginClient
Build the OriginClient.
Auto Trait Implementations§
impl Freeze for OriginClientBuilder
impl !RefUnwindSafe for OriginClientBuilder
impl Send for OriginClientBuilder
impl Sync for OriginClientBuilder
impl Unpin for OriginClientBuilder
impl UnsafeUnpin for OriginClientBuilder
impl !UnwindSafe for OriginClientBuilder
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