pub struct AudiencePc {
pub pc_id: String,
pub last_logon_user: Option<String>,
pub last_logon_display_name: Option<String>,
pub confirmed: bool,
pub acked_at: Option<DateTime<Utc>>,
pub unacked_at: Option<DateTime<Utc>>,
}Expand description
One targeted PC’s confirmation state, for the detail page’s “who
hasn’t confirmed” roster (④). Resolved by expanding the notification’s
fan-out subjects (all / group.X / pc.Y) to the fleet’s PCs and
joining against the recorded acks.
Granularity is the PC, not the individual user: the backend has no
full per-PC user roster, only each host’s last-logon identity, so
last_logon_* stands in as “the PC’s representative user”. confirmed
is true when any user on that PC acked (the detailed who-and-when is
in acks).
Fields§
§pc_id: String§last_logon_user: Option<String>The host’s last sign-in account (DOMAIN\sam) / display name from
the agents row — None for a targeted PC with no agent record
(e.g. an explicit pc.Y target that never registered).
last_logon_display_name: Option<String>§confirmed: booltrue when this PC currently has a standing confirmation — at
least one user acked and has not since retracted it. A PC whose
only ack was later revoked is confirmed = false with
unacked_at = Some (the “取消済み” state), so the operator’s
“who hasn’t confirmed” roster counts it as not-confirmed while
still surfacing that it once was.
acked_at: Option<DateTime<Utc>>Earliest ack instant recorded for this PC; None while pending.
Retained even after a revoke so the audit view can show
“confirmed at X → retracted at Y”.
unacked_at: Option<DateTime<Utc>>When this PC’s confirmation was retracted (the latest revoke
across its users). Some with confirmed = false ⇒ “取消済み”
(was confirmed, then taken back); None ⇒ never retracted (either
still confirmed or never confirmed — disambiguated by confirmed
/ acked_at). Additive + optional for pre-unack decode.
Trait Implementations§
Source§impl Clone for AudiencePc
impl Clone for AudiencePc
Source§fn clone(&self) -> AudiencePc
fn clone(&self) -> AudiencePc
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AudiencePc
impl Debug for AudiencePc
Source§impl<'de> Deserialize<'de> for AudiencePc
impl<'de> Deserialize<'de> for AudiencePc
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>,
Source§impl JsonSchema for AudiencePc
impl JsonSchema for AudiencePc
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more