pub enum PredicateWrapper {
LinkV0_2(LinkV02),
SLSAProvenanceV0_1(SLSAProvenanceV01),
SLSAProvenanceV0_2(SLSAProvenanceV02),
}Variants§
Implementations§
Source§impl PredicateWrapper
impl PredicateWrapper
Sourcepub fn into_trait(self) -> Box<dyn PredicateLayout>
pub fn into_trait(self) -> Box<dyn PredicateLayout>
Convert from enum PredicateWrapper to trait PredicateLayout
Sourcepub fn judge_from_value(value: &Value) -> Result<PredicateVer>
pub fn judge_from_value(value: &Value) -> Result<PredicateVer>
Auto judge the PredicateWrapper version from serde:Value
Sourcepub fn try_from_value(value: Value) -> Result<Self>
pub fn try_from_value(value: Value) -> Result<Self>
Auto deserialize for PredicateWrapper by any possible version.
Trait Implementations§
Source§impl Clone for PredicateWrapper
impl Clone for PredicateWrapper
Source§fn clone(&self) -> PredicateWrapper
fn clone(&self) -> PredicateWrapper
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 Debug for PredicateWrapper
impl Debug for PredicateWrapper
Source§impl<'de> Deserialize<'de> for PredicateWrapper
impl<'de> Deserialize<'de> for PredicateWrapper
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredicateWrapper
impl PartialEq for PredicateWrapper
Source§impl Serialize for PredicateWrapper
impl Serialize for PredicateWrapper
impl Eq for PredicateWrapper
impl StructuralPartialEq for PredicateWrapper
Auto Trait Implementations§
impl Freeze for PredicateWrapper
impl RefUnwindSafe for PredicateWrapper
impl Send for PredicateWrapper
impl Sync for PredicateWrapper
impl Unpin for PredicateWrapper
impl UnwindSafe for PredicateWrapper
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