pub struct ScanProfileLimitsV1 { /* private fields */ }Expand description
Complete serialized resource envelope for a v1 assessment profile.
Construction and deserialization route every value through the checked
WebAssessmentLimits setters. The fixed concurrency of that authority is
intentionally not configurable here.
Implementations§
Source§impl ScanProfileLimitsV1
impl ScanProfileLimitsV1
Sourcepub fn from_web_assessment_limits(
limits: WebAssessmentLimits,
) -> Result<Self, ScanProfileV1Error>
pub fn from_web_assessment_limits( limits: WebAssessmentLimits, ) -> Result<Self, ScanProfileV1Error>
Creates a wire envelope from an already checked assessment envelope.
The assessment limit must use whole-millisecond wall-time precision so serialization cannot silently change the effective runtime authority.
Sourcepub const fn web_assessment_limits(&self) -> WebAssessmentLimits
pub const fn web_assessment_limits(&self) -> WebAssessmentLimits
Returns the checked assessment envelope.
Sourcepub const fn max_subjects(&self) -> usize
pub const fn max_subjects(&self) -> usize
Returns the subject ceiling, including the authorized root.
Sourcepub const fn max_discovery_depth(&self) -> u16
pub const fn max_discovery_depth(&self) -> u16
Returns the discovery depth after the root.
Sourcepub const fn max_references_per_document(&self) -> usize
pub const fn max_references_per_document(&self) -> usize
Returns the reference ceiling per document.
Sourcepub const fn max_canonical_url_bytes(&self) -> usize
pub const fn max_canonical_url_bytes(&self) -> usize
Returns the canonical URL byte ceiling.
Sourcepub const fn max_retained_url_bytes(&self) -> usize
pub const fn max_retained_url_bytes(&self) -> usize
Returns the retained canonical-URL byte ceiling.
Sourcepub const fn max_controls_per_form(&self) -> usize
pub const fn max_controls_per_form(&self) -> usize
Returns the control-name ceiling per form.
Sourcepub const fn max_query_parameter_names(&self) -> usize
pub const fn max_query_parameter_names(&self) -> usize
Returns the query-name ceiling per reference.
Sourcepub const fn max_total_requests(&self) -> u32
pub const fn max_total_requests(&self) -> u32
Returns the authority-wide request ceiling.
Sourcepub const fn max_response_body_bytes(&self) -> usize
pub const fn max_response_body_bytes(&self) -> usize
Returns the per-response body ceiling.
Sourcepub const fn max_total_response_bytes(&self) -> u64
pub const fn max_total_response_bytes(&self) -> u64
Returns the authority-wide response-byte ceiling.
Sourcepub const fn max_wall_time_ms(&self) -> u64
pub const fn max_wall_time_ms(&self) -> u64
Returns the authority-wide wall-clock ceiling in milliseconds.
Sourcepub const fn max_active_verifications(&self) -> u16
pub const fn max_active_verifications(&self) -> u16
Returns the active-verification request ceiling.
Sourcepub const fn concurrency(&self) -> usize
pub const fn concurrency(&self) -> usize
Returns the non-configurable assessment concurrency.
Trait Implementations§
Source§impl Clone for ScanProfileLimitsV1
impl Clone for ScanProfileLimitsV1
Source§fn clone(&self) -> ScanProfileLimitsV1
fn clone(&self) -> ScanProfileLimitsV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScanProfileLimitsV1
Source§impl Debug for ScanProfileLimitsV1
impl Debug for ScanProfileLimitsV1
Source§impl<'de> Deserialize<'de> for ScanProfileLimitsV1
impl<'de> Deserialize<'de> for ScanProfileLimitsV1
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>,
impl Eq for ScanProfileLimitsV1
Source§impl PartialEq for ScanProfileLimitsV1
impl PartialEq for ScanProfileLimitsV1
Source§impl Serialize for ScanProfileLimitsV1
impl Serialize for ScanProfileLimitsV1
impl StructuralPartialEq for ScanProfileLimitsV1
Auto Trait Implementations§
impl Freeze for ScanProfileLimitsV1
impl RefUnwindSafe for ScanProfileLimitsV1
impl Send for ScanProfileLimitsV1
impl Sync for ScanProfileLimitsV1
impl Unpin for ScanProfileLimitsV1
impl UnsafeUnpin for ScanProfileLimitsV1
impl UnwindSafe for ScanProfileLimitsV1
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.