pub struct ServiceAuditTargetsV1(/* private fields */);Expand description
A checked, duplicate-free service-audit target list in canonical order.
Implementations§
Source§impl ServiceAuditTargetsV1
impl ServiceAuditTargetsV1
Sourcepub fn is_valid_for_operation(&self, operation: ServiceOperationV1) -> bool
pub fn is_valid_for_operation(&self, operation: ServiceOperationV1) -> bool
Checks operation-specific target shape without granting authority. Follower lifecycle audits identify exactly their selected registration.
Sourcepub fn new(
targets: impl IntoIterator<Item = ServiceAuditTargetV1>,
) -> Result<Self, ServiceAuditTargetsError>
pub fn new( targets: impl IntoIterator<Item = ServiceAuditTargetV1>, ) -> Result<Self, ServiceAuditTargetsError>
Validates, canonicalizes, and constructs a list of zero through 16 targets.
Sourcepub fn as_slice(&self) -> &[ServiceAuditTargetV1]
pub fn as_slice(&self) -> &[ServiceAuditTargetV1]
Borrows the checked targets in canonical order.
Sourcepub fn into_vec(self) -> Vec<ServiceAuditTargetV1>
pub fn into_vec(self) -> Vec<ServiceAuditTargetV1>
Consumes the collection and returns its canonical target vector.
Trait Implementations§
Source§impl Clone for ServiceAuditTargetsV1
impl Clone for ServiceAuditTargetsV1
Source§impl Debug for ServiceAuditTargetsV1
impl Debug for ServiceAuditTargetsV1
impl Eq for ServiceAuditTargetsV1
Source§impl Hash for ServiceAuditTargetsV1
impl Hash for ServiceAuditTargetsV1
Source§impl PartialEq for ServiceAuditTargetsV1
impl PartialEq for ServiceAuditTargetsV1
impl StructuralPartialEq for ServiceAuditTargetsV1
Auto Trait Implementations§
impl Freeze for ServiceAuditTargetsV1
impl RefUnwindSafe for ServiceAuditTargetsV1
impl Send for ServiceAuditTargetsV1
impl Sync for ServiceAuditTargetsV1
impl Unpin for ServiceAuditTargetsV1
impl UnsafeUnpin for ServiceAuditTargetsV1
impl UnwindSafe for ServiceAuditTargetsV1
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