pub struct WorkflowVersionRegistry { /* private fields */ }Expand description
An ordered registry of workflow versions, supporting diff and history queries.
Implementations§
Source§impl WorkflowVersionRegistry
impl WorkflowVersionRegistry
Sourcepub fn push(&mut self, version: WorkflowVersion)
pub fn push(&mut self, version: WorkflowVersion)
Append a new version.
Sourcepub fn latest(&self) -> Option<&WorkflowVersion>
pub fn latest(&self) -> Option<&WorkflowVersion>
Return the most recent version, if any.
Sourcepub fn get(&self, id: u64) -> Option<&WorkflowVersion>
pub fn get(&self, id: u64) -> Option<&WorkflowVersion>
Find a version by its id.
Trait Implementations§
Source§impl Debug for WorkflowVersionRegistry
impl Debug for WorkflowVersionRegistry
Source§impl Default for WorkflowVersionRegistry
impl Default for WorkflowVersionRegistry
Source§fn default() -> WorkflowVersionRegistry
fn default() -> WorkflowVersionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkflowVersionRegistry
impl RefUnwindSafe for WorkflowVersionRegistry
impl Send for WorkflowVersionRegistry
impl Sync for WorkflowVersionRegistry
impl Unpin for WorkflowVersionRegistry
impl UnsafeUnpin for WorkflowVersionRegistry
impl UnwindSafe for WorkflowVersionRegistry
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