pub struct PromotionStore {
pub template_id: String,
pub spec_digest: String,
pub graph_id: String,
pub graph_version: String,
pub state: TemplateCandidateState,
pub outcomes: Vec<TemplateOutcome>,
pub decisions: Vec<String>,
}Fields§
§template_id: String§spec_digest: String§graph_id: String§graph_version: String§state: TemplateCandidateState§outcomes: Vec<TemplateOutcome>§decisions: Vec<String>Implementations§
Source§impl PromotionStore
impl PromotionStore
pub fn new( template_id: &str, spec_digest: &str, graph_id: &str, graph_version: &str, ) -> Self
pub fn add_outcome(&mut self, o: TemplateOutcome) -> Result<(), PromotionError>
pub fn eligible(&self) -> bool
pub fn promote_template( &mut self, receipt: OperatorReceipt, ) -> Result<(), PromotionError>
Trait Implementations§
Source§impl Clone for PromotionStore
impl Clone for PromotionStore
Source§fn clone(&self) -> PromotionStore
fn clone(&self) -> PromotionStore
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 moreAuto Trait Implementations§
impl Freeze for PromotionStore
impl RefUnwindSafe for PromotionStore
impl Send for PromotionStore
impl Sync for PromotionStore
impl Unpin for PromotionStore
impl UnsafeUnpin for PromotionStore
impl UnwindSafe for PromotionStore
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