pub struct Report {
pub key: Option<String>,
pub source: Source,
pub in_force: Option<Version>,
pub observed: Option<Version>,
pub outcome: Option<Outcome>,
pub refusal: Option<Refusal>,
pub last_known: bool,
}Expand description
A target’s report of one role (§2.10): desired.v1.Report. Its members
serialize as the schema names them, an absent one left out.
Fields§
§key: Option<String>The slice’s key, absent only for an unbound role (§2.12).
source: Source§in_force: Option<Version>§observed: Option<Version>§outcome: Option<Outcome>§refusal: Option<Refusal>§last_known: booltrue when observed was read from an archive (§2.9).
Implementations§
Source§impl Report
impl Report
Sourcepub fn baseline(key: Option<String>) -> Self
pub fn baseline(key: Option<String>) -> Self
A target’s first report of a role (§2.10): its slice’s key, or none for an unbound role, and the baseline in force.
Sourcepub fn from_json(v: &Value) -> Result<Self, Unreadable>
pub fn from_json(v: &Value) -> Result<Self, Unreadable>
Reads a decoded payload (§2.10): the schema’s members, types and
enums, an integral number read as an integer and a member the schema
does not name ignored; then each stamp’s form; then each revision’s
range. A decoded value holds a number with a fraction or an exponent
as its double, so a revision past 2^53 written so is read as that
double here; decode reads the text, every number by its exact
value (text 0.3, F-181).
§Errors
Unreadable: the first refusal, in that order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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>,
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Reportwhere
RawVecInner: Send,
impl Sync for Reportwhere
RawVecInner: Sync,
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Reportwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more