pub struct EvidenceExportQuery {
pub capability_id: Option<String>,
pub agent_subject: Option<String>,
pub since: Option<u64>,
pub until: Option<u64>,
pub tenant: Option<String>,
pub read_boundary: Option<ReceiptReadBoundary>,
}Expand description
Full-export query used for offline evidence packaging.
Fields§
§capability_id: Option<String>§agent_subject: Option<String>§since: Option<u64>§until: Option<u64>§tenant: Option<String>Multi-tenant receipt isolation: restrict the export to a single tenant so exported evidence bundles carry the tenant tag end-to-end. MUST be derived from the operator’s authenticated tenant claim; callers MUST NOT let the agent choose this value.
read_boundary: Option<ReceiptReadBoundary>Explicit read boundary for receipt export. Local exports must not infer admin scope from an omitted tenant.
Implementations§
Source§impl EvidenceExportQuery
impl EvidenceExportQuery
pub fn as_receipt_query(&self, cursor: Option<u64>) -> ReceiptQuery
pub fn admin_all() -> Self
pub fn tenant_scoped(tenant: impl Into<String>) -> Self
pub fn validate_read_boundary(&self) -> Result<(), EvidenceExportError>
pub fn normalized_for_read_boundary(&self) -> Self
pub fn child_receipt_scope(&self) -> EvidenceChildReceiptScope
Trait Implementations§
Source§impl Clone for EvidenceExportQuery
impl Clone for EvidenceExportQuery
Source§fn clone(&self) -> EvidenceExportQuery
fn clone(&self) -> EvidenceExportQuery
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 EvidenceExportQuery
impl Debug for EvidenceExportQuery
Source§impl Default for EvidenceExportQuery
impl Default for EvidenceExportQuery
Source§fn default() -> EvidenceExportQuery
fn default() -> EvidenceExportQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvidenceExportQuery
impl<'de> Deserialize<'de> for EvidenceExportQuery
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 EvidenceExportQuery
Source§impl PartialEq for EvidenceExportQuery
impl PartialEq for EvidenceExportQuery
Source§impl Serialize for EvidenceExportQuery
impl Serialize for EvidenceExportQuery
impl StructuralPartialEq for EvidenceExportQuery
Auto Trait Implementations§
impl Freeze for EvidenceExportQuery
impl RefUnwindSafe for EvidenceExportQuery
impl Send for EvidenceExportQuery
impl Sync for EvidenceExportQuery
impl Unpin for EvidenceExportQuery
impl UnsafeUnpin for EvidenceExportQuery
impl UnwindSafe for EvidenceExportQuery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more