pub struct ControlObservation { /* private fields */ }Expand description
Immutable canonical ephemeral provider result; has no Serde or persisted authority lane.
Implementations§
Source§impl ControlObservation
impl ControlObservation
Sourcepub fn new(
input: ControlObservationInput,
) -> Result<Self, ControlObservationError>
pub fn new( input: ControlObservationInput, ) -> Result<Self, ControlObservationError>
Admit canonical observed target; other fields are validated by their owning types.
§Errors
Rejects malformed observed target principals.
Sourcepub const fn request(&self) -> &ArtifactChecksumRecord
pub const fn request(&self) -> &ArtifactChecksumRecord
Read exact current request identity.
Sourcepub const fn context(&self) -> &PlanContextRecord
pub const fn context(&self) -> &PlanContextRecord
Read actual observed context.
Sourcepub const fn controllers(&self) -> &ControllerSet
pub const fn controllers(&self) -> &ControllerSet
Read known controllers; an empty set never satisfies caller-control admission.
Sourcepub const fn evidence(&self) -> &ArtifactChecksumRecord
pub const fn evidence(&self) -> &ArtifactChecksumRecord
Read opaque integration evidence identifier.
Sourcepub const fn remote_observations(&self) -> u32
pub const fn remote_observations(&self) -> u32
Read reported calls; this changes no original allowance.
Trait Implementations§
Source§impl Clone for ControlObservation
impl Clone for ControlObservation
Auto Trait Implementations§
impl Freeze for ControlObservation
impl RefUnwindSafe for ControlObservation
impl Send for ControlObservation
impl Sync for ControlObservation
impl Unpin for ControlObservation
impl UnsafeUnpin for ControlObservation
impl UnwindSafe for ControlObservation
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