pub struct PromotionMetadata {
pub requested_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub approved: bool,
pub reason: Option<String>,
pub previous_version: Option<Rule>,
}Expand description
Metadata about a rule promotion
Fields§
§requested_at: DateTime<Utc>When the promotion was requested
completed_at: Option<DateTime<Utc>>When the promotion was completed (if approved)
approved: boolWhether the promotion was approved
reason: Option<String>Reason for approval or rejection
previous_version: Option<Rule>Previous version of the rule (before promotion)
Trait Implementations§
Source§impl Clone for PromotionMetadata
impl Clone for PromotionMetadata
Source§fn clone(&self) -> PromotionMetadata
fn clone(&self) -> PromotionMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 PromotionMetadata
impl RefUnwindSafe for PromotionMetadata
impl Send for PromotionMetadata
impl Sync for PromotionMetadata
impl Unpin for PromotionMetadata
impl UnwindSafe for PromotionMetadata
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