pub struct ProposalView {
pub action: String,
pub params: BTreeMap<String, OutValue>,
pub derivation: Derivation,
pub notices: Vec<Notice>,
}Expand description
What a scorer knows of a proposal: the judgment’s action, parameters, derivation and notices.
Fields§
§action: String§params: BTreeMap<String, OutValue>§derivation: Derivation§notices: Vec<Notice>Implementations§
Source§impl ProposalView
impl ProposalView
Sourcepub fn subject(&self) -> Result<ContentDigest, CanonicalError>
pub fn subject(&self) -> Result<ContentDigest, CanonicalError>
The subject a score binds (3.7.1), over the record canonical bytes, since parameters may hold binary64 values.
Trait Implementations§
Source§impl Clone for ProposalView
impl Clone for ProposalView
Source§impl Debug for ProposalView
impl Debug for ProposalView
Source§impl<'de> Deserialize<'de> for ProposalView
impl<'de> Deserialize<'de> for ProposalView
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 ProposalView
impl PartialEq for ProposalView
Source§impl Serialize for ProposalView
impl Serialize for ProposalView
impl StructuralPartialEq for ProposalView
Auto Trait Implementations§
impl Freeze for ProposalView
impl RefUnwindSafe for ProposalView
impl Send for ProposalView
impl Sync for ProposalView
impl Unpin for ProposalView
impl UnsafeUnpin for ProposalView
impl UnwindSafe for ProposalView
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