pub struct UnderwritingPolicyInputQuery {
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>,
}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>Implementations§
Source§impl UnderwritingPolicyInputQuery
impl UnderwritingPolicyInputQuery
pub fn receipt_limit_or_default(&self) -> usize
pub fn normalized(&self) -> Self
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for UnderwritingPolicyInputQuery
impl Clone for UnderwritingPolicyInputQuery
Source§fn clone(&self) -> UnderwritingPolicyInputQuery
fn clone(&self) -> UnderwritingPolicyInputQuery
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 UnderwritingPolicyInputQuery
impl Debug for UnderwritingPolicyInputQuery
Source§impl<'de> Deserialize<'de> for UnderwritingPolicyInputQuery
impl<'de> Deserialize<'de> for UnderwritingPolicyInputQuery
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
Source§impl PartialEq for UnderwritingPolicyInputQuery
impl PartialEq for UnderwritingPolicyInputQuery
Source§fn eq(&self, other: &UnderwritingPolicyInputQuery) -> bool
fn eq(&self, other: &UnderwritingPolicyInputQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UnderwritingPolicyInputQuery
impl StructuralPartialEq for UnderwritingPolicyInputQuery
Auto Trait Implementations§
impl Freeze for UnderwritingPolicyInputQuery
impl RefUnwindSafe for UnderwritingPolicyInputQuery
impl Send for UnderwritingPolicyInputQuery
impl Sync for UnderwritingPolicyInputQuery
impl Unpin for UnderwritingPolicyInputQuery
impl UnsafeUnpin for UnderwritingPolicyInputQuery
impl UnwindSafe for UnderwritingPolicyInputQuery
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