pub struct ValidationResultMethodVersions {
pub flatten: FeatureVersion,
pub merge_many: FeatureVersion,
}Expand description
Versions of the aggregator methods on
[crate::validation::ValidationResult] (flatten, merge_many).
Issue #2867: in v0 the aggregators returned Some(empty_vec) when no
per-item input contributed any data, which caused
validating-state-transition-for-free — empty-action batches were treated
as paid (and stayed in the block) instead of unpaid (removed in
prepare_proposal). v1 returns None in that case so the result correctly
flows down the unpaid path.
Fields§
§flatten: FeatureVersion§merge_many: FeatureVersionTrait Implementations§
Source§impl Clone for ValidationResultMethodVersions
impl Clone for ValidationResultMethodVersions
Source§fn clone(&self) -> ValidationResultMethodVersions
fn clone(&self) -> ValidationResultMethodVersions
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 Default for ValidationResultMethodVersions
impl Default for ValidationResultMethodVersions
Source§fn default() -> ValidationResultMethodVersions
fn default() -> ValidationResultMethodVersions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationResultMethodVersions
impl RefUnwindSafe for ValidationResultMethodVersions
impl Send for ValidationResultMethodVersions
impl Sync for ValidationResultMethodVersions
impl Unpin for ValidationResultMethodVersions
impl UnsafeUnpin for ValidationResultMethodVersions
impl UnwindSafe for ValidationResultMethodVersions
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<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
Source§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
Source§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
Source§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
Source§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.