pub struct AuditQuery {
pub tenant_scope: String,
pub resource: AuditResourceRef,
pub include_related: bool,
pub relation: Option<String>,
pub direction: AuditSortDirection,
pub after: Option<AuditCursor>,
pub limit: usize,
}Expand description
Bounded resource-history query. Authorization remains in the application use case.
Fields§
§tenant_scope: String§resource: AuditResourceRef§relation: Option<String>§direction: AuditSortDirection§after: Option<AuditCursor>§limit: usizeImplementations§
Source§impl AuditQuery
impl AuditQuery
pub fn for_resource( tenant_scope: impl Into<String>, resource: AuditResourceRef, ) -> Self
pub fn validate(&self) -> Result<(), AuditLedgerError>
Trait Implementations§
Source§impl Clone for AuditQuery
impl Clone for AuditQuery
Source§fn clone(&self) -> AuditQuery
fn clone(&self) -> AuditQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditQuery
impl Debug for AuditQuery
Source§impl<'de> Deserialize<'de> for AuditQuery
impl<'de> Deserialize<'de> for AuditQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuditQuery
Source§impl PartialEq for AuditQuery
impl PartialEq for AuditQuery
Source§impl Serialize for AuditQuery
impl Serialize for AuditQuery
impl StructuralPartialEq for AuditQuery
Auto Trait Implementations§
impl Freeze for AuditQuery
impl RefUnwindSafe for AuditQuery
impl Send for AuditQuery
impl Sync for AuditQuery
impl Unpin for AuditQuery
impl UnsafeUnpin for AuditQuery
impl UnwindSafe for AuditQuery
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