pub struct ExposureLedgerQuery {
pub capability_id: Option<String>,
pub agent_subject: Option<String>,
pub tool_server: Option<String>,
pub tool_name: Option<String>,
pub since: Option<u64>,
pub until: Option<u64>,
pub receipt_limit: Option<usize>,
pub decision_limit: Option<usize>,
}Fields§
§capability_id: Option<String>§agent_subject: Option<String>§tool_server: Option<String>§tool_name: Option<String>§since: Option<u64>§until: Option<u64>§receipt_limit: Option<usize>§decision_limit: Option<usize>Implementations§
Source§impl ExposureLedgerQuery
impl ExposureLedgerQuery
pub fn receipt_limit_or_default(&self) -> usize
pub fn decision_limit_or_default(&self) -> usize
pub fn normalized(&self) -> ExposureLedgerQuery
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for ExposureLedgerQuery
impl Clone for ExposureLedgerQuery
Source§fn clone(&self) -> ExposureLedgerQuery
fn clone(&self) -> ExposureLedgerQuery
Returns a duplicate 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 moreSource§impl Debug for ExposureLedgerQuery
impl Debug for ExposureLedgerQuery
Source§impl Default for ExposureLedgerQuery
impl Default for ExposureLedgerQuery
Source§fn default() -> ExposureLedgerQuery
fn default() -> ExposureLedgerQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExposureLedgerQuery
impl<'de> Deserialize<'de> for ExposureLedgerQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExposureLedgerQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExposureLedgerQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExposureLedgerQuery
impl PartialEq for ExposureLedgerQuery
Source§impl Serialize for ExposureLedgerQuery
impl Serialize for ExposureLedgerQuery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ExposureLedgerQuery
impl StructuralPartialEq for ExposureLedgerQuery
Auto Trait Implementations§
impl Freeze for ExposureLedgerQuery
impl RefUnwindSafe for ExposureLedgerQuery
impl Send for ExposureLedgerQuery
impl Sync for ExposureLedgerQuery
impl Unpin for ExposureLedgerQuery
impl UnsafeUnpin for ExposureLedgerQuery
impl UnwindSafe for ExposureLedgerQuery
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§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.