pub struct Sp3MergeInputIdentity {
pub schema_version: u8,
pub contributors: Vec<Sp3ArtifactIdentity>,
pub precedence_contributors: Option<Vec<Sp3ArtifactIdentity>>,
pub stable_id: String,
}Expand description
Canonical identity of a complete SP3 merge input set and merge policy.
Fields§
§schema_version: u8Canonical encoding version.
contributors: Vec<Sp3ArtifactIdentity>Contributors in canonical order, independent of caller enumeration.
precedence_contributors: Option<Vec<Sp3ArtifactIdentity>>Ordered contributors when precedence combination makes order semantic.
None for mean and median combination.
stable_id: StringVersioned SHA-256 identity of the contributors and complete merge policy.
Implementations§
Source§impl Sp3MergeInputIdentity
impl Sp3MergeInputIdentity
Sourcepub fn new(
contributors: &[Sp3ArtifactIdentity],
policy: &MergeOptions,
) -> Result<Self, Sp3MergeInputIdentityError>
pub fn new( contributors: &[Sp3ArtifactIdentity], policy: &MergeOptions, ) -> Result<Self, Sp3MergeInputIdentityError>
Validate, canonically order, and bind all contributors and merge controls.
Sourcepub fn verify(
&self,
policy: &MergeOptions,
) -> Result<bool, Sp3MergeInputIdentityError>
pub fn verify( &self, policy: &MergeOptions, ) -> Result<bool, Sp3MergeInputIdentityError>
Recompute and verify this persisted identity and its merge controls.
Sourcepub fn verify_against(
&self,
contributors: &[Sp3ArtifactIdentity],
policy: &MergeOptions,
) -> Result<bool, Sp3MergeInputIdentityError>
pub fn verify_against( &self, contributors: &[Sp3ArtifactIdentity], policy: &MergeOptions, ) -> Result<bool, Sp3MergeInputIdentityError>
Recompute and compare against separately persisted contributor records and merge controls.
Trait Implementations§
Source§impl Clone for Sp3MergeInputIdentity
impl Clone for Sp3MergeInputIdentity
Source§fn clone(&self) -> Sp3MergeInputIdentity
fn clone(&self) -> Sp3MergeInputIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Sp3MergeInputIdentity
impl Debug for Sp3MergeInputIdentity
impl Eq for Sp3MergeInputIdentity
Source§impl PartialEq for Sp3MergeInputIdentity
impl PartialEq for Sp3MergeInputIdentity
impl StructuralPartialEq for Sp3MergeInputIdentity
Auto Trait Implementations§
impl Freeze for Sp3MergeInputIdentity
impl RefUnwindSafe for Sp3MergeInputIdentity
impl Send for Sp3MergeInputIdentity
impl Sync for Sp3MergeInputIdentity
impl Unpin for Sp3MergeInputIdentity
impl UnsafeUnpin for Sp3MergeInputIdentity
impl UnwindSafe for Sp3MergeInputIdentity
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.