pub struct ExternalObservation {
pub state: ExternalState,
pub observed_at: DateTime<Utc>,
pub observed_by: ActorId,
}Expand description
An attributed report of external state; it never changes local work status.
Fields§
§state: ExternalStateReported state.
observed_at: DateTime<Utc>Time at which the state was recorded.
observed_by: ActorIdPrincipal that reported the state.
Implementations§
Source§impl ExternalObservation
impl ExternalObservation
Sourcepub fn admits(&self, next: ExternalState) -> bool
pub fn admits(&self, next: ExternalState) -> bool
Whether a later report of next may replace this one. A merged pull request can neither
reopen nor close, so after Merged only another Merged report is accepted from any link.
Trait Implementations§
Source§impl Clone for ExternalObservation
impl Clone for ExternalObservation
Source§impl Debug for ExternalObservation
impl Debug for ExternalObservation
Source§impl<'de> Deserialize<'de> for ExternalObservation
impl<'de> Deserialize<'de> for ExternalObservation
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
impl Eq for ExternalObservation
Source§impl PartialEq for ExternalObservation
impl PartialEq for ExternalObservation
Source§impl Serialize for ExternalObservation
impl Serialize for ExternalObservation
impl StructuralPartialEq for ExternalObservation
Auto Trait Implementations§
impl Freeze for ExternalObservation
impl RefUnwindSafe for ExternalObservation
impl Send for ExternalObservation
impl Sync for ExternalObservation
impl Unpin for ExternalObservation
impl UnsafeUnpin for ExternalObservation
impl UnwindSafe for ExternalObservation
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