pub struct EdgeBase { /* private fields */ }Expand description
Server-side EdgeBase client — requires Service Key.
Implementations§
Source§impl EdgeBase
impl EdgeBase
Sourcepub fn server(base_url: &str, service_key: &str) -> Result<Self, Error>
pub fn server(base_url: &str, service_key: &str) -> Result<Self, Error>
Create a server-side SDK instance.
Sourcepub fn admin_auth(&self) -> AdminAuthClient
pub fn admin_auth(&self) -> AdminAuthClient
Admin Auth operations (create/get/list/delete users).
Sourcepub fn db(&self, ns: &str, instance_id: Option<&str>) -> DbRef
pub fn db(&self, ns: &str, instance_id: Option<&str>) -> DbRef
Select a DB block by namespace and optional instance ID (#133 §2).
Sourcepub fn storage(&self) -> StorageClient
pub fn storage(&self) -> StorageClient
Storage operations.
Sourcepub fn vector(&self, index: &str) -> VectorizeClient
pub fn vector(&self, index: &str) -> VectorizeClient
Access a user-defined Vectorize index.
Sourcepub fn push(&self) -> PushClient
pub fn push(&self) -> PushClient
Push notification management.
Sourcepub fn functions(&self) -> FunctionsClient
pub fn functions(&self) -> FunctionsClient
Call app functions with the admin service key.
Sourcepub fn analytics(&self) -> AnalyticsClient
pub fn analytics(&self) -> AnalyticsClient
Query analytics metrics and track custom events.
Auto Trait Implementations§
impl Freeze for EdgeBase
impl !RefUnwindSafe for EdgeBase
impl Send for EdgeBase
impl Sync for EdgeBase
impl Unpin for EdgeBase
impl UnsafeUnpin for EdgeBase
impl !UnwindSafe for EdgeBase
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