pub struct MemoryPermissionsClient { /* private fields */ }Expand description
Permissions service client for memory transport. All methods are synchronous and use the -sys safe layer.
Implementations§
Source§impl MemoryPermissionsClient
impl MemoryPermissionsClient
Sourcepub fn check_permission(
&self,
request: &CheckPermissionRequest,
) -> Result<CheckPermissionResponse, SpiceDBError>
pub fn check_permission( &self, request: &CheckPermissionRequest, ) -> Result<CheckPermissionResponse, SpiceDBError>
Sourcepub fn write_relationships(
&self,
request: &WriteRelationshipsRequest,
) -> Result<WriteRelationshipsResponse, SpiceDBError>
pub fn write_relationships( &self, request: &WriteRelationshipsRequest, ) -> Result<WriteRelationshipsResponse, SpiceDBError>
WriteRelationships.
§Errors
Returns an error if the FFI call fails or the response cannot be decoded.
Sourcepub fn delete_relationships(
&self,
request: &DeleteRelationshipsRequest,
) -> Result<DeleteRelationshipsResponse, SpiceDBError>
pub fn delete_relationships( &self, request: &DeleteRelationshipsRequest, ) -> Result<DeleteRelationshipsResponse, SpiceDBError>
DeleteRelationships.
§Errors
Returns an error if the FFI call fails or the response cannot be decoded.
Sourcepub fn check_bulk_permissions(
&self,
request: &CheckBulkPermissionsRequest,
) -> Result<CheckBulkPermissionsResponse, SpiceDBError>
pub fn check_bulk_permissions( &self, request: &CheckBulkPermissionsRequest, ) -> Result<CheckBulkPermissionsResponse, SpiceDBError>
CheckBulkPermissions.
§Errors
Returns an error if the FFI call fails or the response cannot be decoded.
Sourcepub fn expand_permission_tree(
&self,
request: &ExpandPermissionTreeRequest,
) -> Result<ExpandPermissionTreeResponse, SpiceDBError>
pub fn expand_permission_tree( &self, request: &ExpandPermissionTreeRequest, ) -> Result<ExpandPermissionTreeResponse, SpiceDBError>
ExpandPermissionTree.
§Errors
Returns an error if the FFI call fails or the response cannot be decoded.
Auto Trait Implementations§
impl Freeze for MemoryPermissionsClient
impl RefUnwindSafe for MemoryPermissionsClient
impl Send for MemoryPermissionsClient
impl Sync for MemoryPermissionsClient
impl Unpin for MemoryPermissionsClient
impl UnsafeUnpin for MemoryPermissionsClient
impl UnwindSafe for MemoryPermissionsClient
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> 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