#[non_exhaustive]pub struct Plan {
pub base_revision: u64,
pub base_generation: u64,
pub active_generations: BTreeMap<String, u64>,
pub daemon_incarnation: String,
pub input_vector: InputVector,
pub changeset: Changeset,
}Expand description
Immutable approval payload. The input vector includes subc.jsonc and every touched module’s layers, declaration and covered program identities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.base_revision: u64§base_generation: u64§active_generations: BTreeMap<String, u64>§daemon_incarnation: String§input_vector: InputVector§changeset: ChangesetImplementations§
Source§impl Plan
impl Plan
pub fn new( base_revision: u64, base_generation: u64, daemon_incarnation: impl Into<String>, input_vector: InputVector, changeset: Changeset, ) -> Plan
pub fn digest(&self) -> Result<Digest, CanonicalError>
pub fn check_fresh( &self, base_revision: u64, current: &InputVector, ) -> Result<(), Refusal>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Plan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Plan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Plan
impl Serialize for Plan
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Forget for Plan
impl Freeze for Plan
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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