pub struct VerifyDetails {
pub result: VerifyResult,
pub entities: HashMap<&'static str, bool>,
pub ids: HashMap<&'static str, Uuid>,
}Expand description
Detailed verification result with entity-level information.
This type allows steps to pass verification data to run() to avoid redundant database queries.
Fields§
§result: VerifyResultOverall verification result.
entities: HashMap<&'static str, bool>Entity existence status (entity_name -> exists).
ids: HashMap<&'static str, Uuid>Entity IDs discovered during verification (entity_name -> id).
Implementations§
Source§impl VerifyDetails
impl VerifyDetails
Sourcepub fn new(result: VerifyResult) -> Self
pub fn new(result: VerifyResult) -> Self
Creates a new details instance with the given result.
Sourcepub fn entity(self, name: &'static str, exists: bool) -> Self
pub fn entity(self, name: &'static str, exists: bool) -> Self
Records an entity’s existence status.
Sourcepub fn entity_with_id(self, name: &'static str, exists: bool, id: Uuid) -> Self
pub fn entity_with_id(self, name: &'static str, exists: bool, id: Uuid) -> Self
Records an entity’s existence status with its ID.
Sourcepub fn all_present(&self) -> bool
pub fn all_present(&self) -> bool
Returns true if all entities exist.
Sourcepub fn any_present(&self) -> bool
pub fn any_present(&self) -> bool
Returns true if any entity exists.
Sourcepub fn none_present(&self) -> bool
pub fn none_present(&self) -> bool
Returns true if no entities exist.
Trait Implementations§
Source§impl Clone for VerifyDetails
impl Clone for VerifyDetails
Source§fn clone(&self) -> VerifyDetails
fn clone(&self) -> VerifyDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerifyDetails
impl RefUnwindSafe for VerifyDetails
impl Send for VerifyDetails
impl Sync for VerifyDetails
impl Unpin for VerifyDetails
impl UnsafeUnpin for VerifyDetails
impl UnwindSafe for VerifyDetails
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