pub struct MilestoneRequest {
pub contract_id: String,
pub phase_id: String,
}Expand description
Which phase of which contract the host must evaluate — and nothing else.
The pair is the point: phase_id is unique only within its contract (§7.3), so
(contract_id, phase_id) is the host’s complete lookup key. Neither criteria nor required
evidence travels here: under the §7.3 contract skeleton core never learns them, so a field for
them could only ever be empty, and an always-empty field is an invitation for a host to believe
the kernel knows something it does not (§5.2, adjudication §5m-3 as refined by §5p).
Fields§
§contract_id: String§phase_id: StringTrait Implementations§
Source§impl Clone for MilestoneRequest
impl Clone for MilestoneRequest
Source§fn clone(&self) -> MilestoneRequest
fn clone(&self) -> MilestoneRequest
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 MilestoneRequest
impl Debug for MilestoneRequest
Source§impl Default for MilestoneRequest
impl Default for MilestoneRequest
Source§fn default() -> MilestoneRequest
fn default() -> MilestoneRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MilestoneRequest
impl<'de> Deserialize<'de> for MilestoneRequest
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 MilestoneRequest
impl PartialEq for MilestoneRequest
Source§impl Serialize for MilestoneRequest
impl Serialize for MilestoneRequest
impl StructuralPartialEq for MilestoneRequest
Auto Trait Implementations§
impl Freeze for MilestoneRequest
impl RefUnwindSafe for MilestoneRequest
impl Send for MilestoneRequest
impl Sync for MilestoneRequest
impl Unpin for MilestoneRequest
impl UnsafeUnpin for MilestoneRequest
impl UnwindSafe for MilestoneRequest
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