Struct spicedb_rust::SpiceDBClient
source · pub struct SpiceDBClient { /* private fields */ }Implementations§
source§impl SpiceDBClient
impl SpiceDBClient
sourcepub async fn from_env() -> Result<Self>
pub async fn from_env() -> Result<Self>
Reads the following env variables:
ZED_TOKENZED_ENDPOINT
pub async fn new( addr: impl Into<String>, token: impl AsRef<str>, ) -> Result<Self>
pub fn leak(self) -> &'static Self
pub fn schema_client(&self) -> &Client
pub fn into_schema_client(self) -> Client
pub fn permission_client(&self) -> &PermissionServiceClient
pub fn into_permission_client(self) -> PermissionServiceClient
Trait Implementations§
source§impl Clone for SpiceDBClient
impl Clone for SpiceDBClient
source§fn clone(&self) -> SpiceDBClient
fn clone(&self) -> SpiceDBClient
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 SpiceDBClient
impl !RefUnwindSafe for SpiceDBClient
impl Send for SpiceDBClient
impl Sync for SpiceDBClient
impl Unpin for SpiceDBClient
impl !UnwindSafe for SpiceDBClient
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request