pub struct ParserPackPayloadMeasurements {
pub files: u32,
pub grammar_libraries: u32,
pub payload_bytes: u64,
pub largest_file_bytes: u64,
pub longest_path_bytes: u32,
}Expand description
Derived bounded measurements for artifact payload files.
Fields§
§files: u32Number of manifest-listed payload files.
grammar_libraries: u32Number of accepted native grammar libraries.
payload_bytes: u64Sum of manifest-listed payload bytes, excluding the manifest itself.
largest_file_bytes: u64Largest manifest-listed payload file.
longest_path_bytes: u32Longest canonical relative path in UTF-8 bytes.
Implementations§
Source§impl ParserPackPayloadMeasurements
impl ParserPackPayloadMeasurements
Sourcepub fn from_files(
files: &[ParserPackPayloadFile],
) -> Result<Self, OptionalParserPackManifestError>
pub fn from_files( files: &[ParserPackPayloadFile], ) -> Result<Self, OptionalParserPackManifestError>
Derive bounded measurements from an exact manifest-listed payload inventory.
§Errors
Returns an error when a file or aggregate measurement exceeds a pack ceiling.
Trait Implementations§
Source§impl Clone for ParserPackPayloadMeasurements
impl Clone for ParserPackPayloadMeasurements
Source§fn clone(&self) -> ParserPackPayloadMeasurements
fn clone(&self) -> ParserPackPayloadMeasurements
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<'de> Deserialize<'de> for ParserPackPayloadMeasurements
impl<'de> Deserialize<'de> for ParserPackPayloadMeasurements
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 ParserPackPayloadMeasurements
impl PartialEq for ParserPackPayloadMeasurements
Source§fn eq(&self, other: &ParserPackPayloadMeasurements) -> bool
fn eq(&self, other: &ParserPackPayloadMeasurements) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParserPackPayloadMeasurements
impl StructuralPartialEq for ParserPackPayloadMeasurements
Auto Trait Implementations§
impl Freeze for ParserPackPayloadMeasurements
impl RefUnwindSafe for ParserPackPayloadMeasurements
impl Send for ParserPackPayloadMeasurements
impl Sync for ParserPackPayloadMeasurements
impl Unpin for ParserPackPayloadMeasurements
impl UnwindSafe for ParserPackPayloadMeasurements
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,
§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
Compare self to
key and return true if they are equal.