pub struct CanaryDeclaration {
pub tenant: String,
pub environment: EnvironmentTag,
pub revision_id: RevisionId,
pub fraction: f64,
pub author: ProvenanceAuthor,
pub declared_at: DateTime<Utc>,
}Expand description
A canary was declared on an environment’s pointer: the journaled
payload of a crate::record::RunEventKind::CanaryDeclared event,
and the move DeploymentPointer::canaried applies. The binding
journals whole — revision and fraction — because the seeded draw an
audit replays is a function of exactly these fields.
Fields§
§tenant: StringThe tenant the canary governs.
environment: EnvironmentTagThe environment canarying.
revision_id: RevisionIdThe canaried revision.
fraction: f64The fraction of new runs the revision serves.
Who declared the canary (human:{id}).
declared_at: DateTime<Utc>When the canary journaled.
Trait Implementations§
Source§impl Clone for CanaryDeclaration
impl Clone for CanaryDeclaration
Source§impl Debug for CanaryDeclaration
impl Debug for CanaryDeclaration
Source§impl<'de> Deserialize<'de> for CanaryDeclaration
impl<'de> Deserialize<'de> for CanaryDeclaration
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 CanaryDeclaration
impl PartialEq for CanaryDeclaration
Source§impl Serialize for CanaryDeclaration
impl Serialize for CanaryDeclaration
impl StructuralPartialEq for CanaryDeclaration
Auto Trait Implementations§
impl Freeze for CanaryDeclaration
impl RefUnwindSafe for CanaryDeclaration
impl Send for CanaryDeclaration
impl Sync for CanaryDeclaration
impl Unpin for CanaryDeclaration
impl UnsafeUnpin for CanaryDeclaration
impl UnwindSafe for CanaryDeclaration
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