Struct spicedb_rust::spicedb::CheckDebugTrace
source · pub struct CheckDebugTrace {
pub resource: Option<ObjectReference>,
pub permission: String,
pub permission_type: i32,
pub subject: Option<SubjectReference>,
pub result: i32,
pub caveat_evaluation_info: Option<CaveatEvalInfo>,
pub duration: Option<Duration>,
pub resolution: Option<Resolution>,
}Expand description
CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.
Fields§
§resource: Option<ObjectReference>resource holds the resource on which the Check was performed.
permission: Stringpermission holds the name of the permission or relation on which the Check was performed.
permission_type: i32permission_type holds information indicating whether it was a permission or relation.
subject: Option<SubjectReference>subject holds the subject on which the Check was performed. This will be static across all calls within the same Check tree.
result: i32result holds the result of the Check call.
caveat_evaluation_info: Option<CaveatEvalInfo>caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
duration: Option<Duration>duration holds the time spent executing this Check operation.
resolution: Option<Resolution>resolution holds information about how the problem was resolved.
Implementations§
source§impl CheckDebugTrace
impl CheckDebugTrace
sourcepub fn permission_type(&self) -> PermissionType
pub fn permission_type(&self) -> PermissionType
Returns the enum value of permission_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_permission_type(&mut self, value: PermissionType)
pub fn set_permission_type(&mut self, value: PermissionType)
Sets permission_type to the provided enum value.
sourcepub fn result(&self) -> Permissionship
pub fn result(&self) -> Permissionship
Returns the enum value of result, or the default if the field is set to an invalid enum value.
sourcepub fn set_result(&mut self, value: Permissionship)
pub fn set_result(&mut self, value: Permissionship)
Sets result to the provided enum value.
Trait Implementations§
source§impl Clone for CheckDebugTrace
impl Clone for CheckDebugTrace
source§fn clone(&self) -> CheckDebugTrace
fn clone(&self) -> CheckDebugTrace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CheckDebugTrace
impl Debug for CheckDebugTrace
source§impl Default for CheckDebugTrace
impl Default for CheckDebugTrace
source§impl Message for CheckDebugTrace
impl Message for CheckDebugTrace
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.source§impl PartialEq for CheckDebugTrace
impl PartialEq for CheckDebugTrace
impl StructuralPartialEq for CheckDebugTrace
Auto Trait Implementations§
impl Freeze for CheckDebugTrace
impl RefUnwindSafe for CheckDebugTrace
impl Send for CheckDebugTrace
impl Sync for CheckDebugTrace
impl Unpin for CheckDebugTrace
impl UnwindSafe for CheckDebugTrace
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
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)
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>
T in a tonic::Request