pub struct OriginClient { /* private fields */ }Expand description
Unified client for all Origin platform services.
Use OriginClient::new for defaults or OriginClient::builder for customization.
Implementations§
Source§impl OriginClient
impl OriginClient
Sourcepub fn new(api_key: impl Into<String>) -> Self
pub fn new(api_key: impl Into<String>) -> Self
Create a client with default URLs and a shared API key.
Sourcepub fn builder(api_key: impl Into<String>) -> OriginClientBuilder
pub fn builder(api_key: impl Into<String>) -> OriginClientBuilder
Create a builder for fine-grained configuration.
Sourcepub fn asset(&self) -> AssetClient
pub fn asset(&self) -> AssetClient
Access the Asset Gateway client.
Sourcepub fn search(&self) -> SearchClient
pub fn search(&self) -> SearchClient
Access the AI Search client.
Sourcepub fn cognee(&self) -> CogneeClient
pub fn cognee(&self) -> CogneeClient
Access the Cognee knowledge graph client.
Trait Implementations§
Source§impl Clone for OriginClient
impl Clone for OriginClient
Source§fn clone(&self) -> OriginClient
fn clone(&self) -> OriginClient
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 OriginClient
impl !RefUnwindSafe for OriginClient
impl Send for OriginClient
impl Sync for OriginClient
impl Unpin for OriginClient
impl UnsafeUnpin for OriginClient
impl !UnwindSafe for OriginClient
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