#[non_exhaustive]pub struct Generation {
pub id: u64,
pub approval_channel: ApprovalChannel,
pub plan_digest: Digest,
pub input_vector: InputVector,
pub declaration_digests: BTreeMap<String, Digest>,
pub module_states: BTreeMap<String, GenerationState>,
pub active_generations: BTreeMap<String, u64>,
pub never_redeliver: Vec<String>,
pub development: bool,
pub changeset: Changeset,
}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.id: u64§approval_channel: ApprovalChannel§plan_digest: Digest§input_vector: InputVector§declaration_digests: BTreeMap<String, Digest>§module_states: BTreeMap<String, GenerationState>§active_generations: BTreeMap<String, u64>§never_redeliver: Vec<String>§development: bool§changeset: ChangesetImplementations§
Source§impl Generation
impl Generation
pub fn new( id: u64, approval_channel: ApprovalChannel, plan_digest: Digest, input_vector: InputVector, changeset: Changeset, ) -> Generation
Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
Source§fn clone(&self) -> Generation
fn clone(&self) -> Generation
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 Generation
impl Debug for Generation
Source§impl<'de> Deserialize<'de> for Generation
impl<'de> Deserialize<'de> for Generation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Generation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Generation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Generation
impl PartialEq for Generation
Source§impl Serialize for Generation
impl Serialize for Generation
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 Generation
Auto Trait Implementations§
impl Forget for Generation
impl Freeze for Generationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, InputState> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, InputState)>>: Freeze,
*const LeafNode<String, Digest> is !null: Freeze,
PhantomData<Box<(String, Digest)>>: Freeze,
*const LeafNode<String, GenerationState> is !null: Freeze,
PhantomData<Box<(String, GenerationState)>>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<FieldChange>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Generation
impl RefUnwindSafe for Generation
impl Send for Generationwhere
RawVecInner: Send,
NodeRef<Owned, String, InputState, LeafOrInternal>: Send,
BoxRaw<(String, InputState)>: Send,
NodeRef<Owned, String, Digest, LeafOrInternal>: Send,
BoxRaw<(String, Digest)>: Send,
NodeRef<Owned, String, GenerationState, LeafOrInternal>: Send,
BoxRaw<(String, GenerationState)>: Send,
NodeRef<Owned, String, u64, LeafOrInternal>: Send,
BoxRaw<(String, u64)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
impl Sync for Generationwhere
RawVecInner: Sync,
NodeRef<Owned, String, InputState, LeafOrInternal>: Sync,
BoxRaw<(String, InputState)>: Sync,
NodeRef<Owned, String, Digest, LeafOrInternal>: Sync,
BoxRaw<(String, Digest)>: Sync,
NodeRef<Owned, String, GenerationState, LeafOrInternal>: Sync,
BoxRaw<(String, GenerationState)>: Sync,
NodeRef<Owned, String, u64, LeafOrInternal>: Sync,
BoxRaw<(String, u64)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
impl Unpin for Generationwhere
*const u8 is !null: Unpin,
*const LeafNode<String, InputState> is !null: Unpin,
Box<(String, InputState)>: Unpin,
*const LeafNode<String, Digest> is !null: Unpin,
Box<(String, Digest)>: Unpin,
*const LeafNode<String, GenerationState> is !null: Unpin,
Box<(String, GenerationState)>: Unpin,
*const LeafNode<String, u64> is !null: Unpin,
Box<(String, u64)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
impl UnsafeUnpin for Generationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, InputState> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, InputState)>>: UnsafeUnpin,
*const LeafNode<String, Digest> is !null: UnsafeUnpin,
PhantomData<Box<(String, Digest)>>: UnsafeUnpin,
*const LeafNode<String, GenerationState> is !null: UnsafeUnpin,
PhantomData<Box<(String, GenerationState)>>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<FieldChange>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Generationwhere
RawVecInner: UnwindSafe,
BTreeMap<String, InputState>: UnwindSafe,
BTreeMap<String, Digest>: UnwindSafe,
BTreeMap<String, GenerationState>: UnwindSafe,
BTreeMap<String, u64>: 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