#[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 Planwhere
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, InputState> is !null: Freeze,
PhantomData<Box<(String, InputState)>>: Freeze,
PhantomData<FieldChange>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Planwhere
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, InputState> is !null: UnsafeUnpin,
PhantomData<Box<(String, InputState)>>: UnsafeUnpin,
PhantomData<FieldChange>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Planwhere
BTreeMap<String, u64>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, InputState>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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