#[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 Generation
impl Move for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnsafeUnpin for Generation
impl UnwindSafe for Generation
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