#[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, ) -> Self
Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
Source§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<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 Generation
impl PartialEq for Generation
Source§impl Serialize for Generation
impl Serialize for Generation
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