pub struct EvolutionProposal {
pub digest: ContentDigest,
pub base_artifact_set: ContentDigest,
pub candidate_artifact_set: ContentDigest,
pub objective: String,
pub change_manifest: ContentDigest,
pub proposer: String,
pub constraints: Vec<String>,
}Fields§
§digest: ContentDigest§base_artifact_set: ContentDigest§candidate_artifact_set: ContentDigest§objective: String§change_manifest: ContentDigest§proposer: String§constraints: Vec<String>Implementations§
Source§impl EvolutionProposal
impl EvolutionProposal
pub fn new( base_artifact_set: ContentDigest, candidate_artifact_set: ContentDigest, objective: impl Into<String>, change_manifest: ContentDigest, proposer: impl Into<String>, constraints: Vec<String>, ) -> Result<Self, EvolutionError>
pub fn verify_digest(&self) -> Result<(), EvolutionError>
Trait Implementations§
Source§impl Clone for EvolutionProposal
impl Clone for EvolutionProposal
Source§fn clone(&self) -> EvolutionProposal
fn clone(&self) -> EvolutionProposal
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 EvolutionProposal
impl Debug for EvolutionProposal
Source§impl<'de> Deserialize<'de> for EvolutionProposal
impl<'de> Deserialize<'de> for EvolutionProposal
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
impl Eq for EvolutionProposal
Source§impl PartialEq for EvolutionProposal
impl PartialEq for EvolutionProposal
Source§impl Serialize for EvolutionProposal
impl Serialize for EvolutionProposal
impl StructuralPartialEq for EvolutionProposal
Auto Trait Implementations§
impl Freeze for EvolutionProposal
impl RefUnwindSafe for EvolutionProposal
impl Send for EvolutionProposal
impl Sync for EvolutionProposal
impl Unpin for EvolutionProposal
impl UnsafeUnpin for EvolutionProposal
impl UnwindSafe for EvolutionProposal
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