pub struct ReferenceValidationResult {
pub reference: CrossReference,
pub is_valid: bool,
pub target_object: Option<DomainObject>,
pub error_message: Option<String>,
pub suggestions: Vec<String>,
}Expand description
Result of reference validation
Fields§
§reference: CrossReferenceThe original reference
is_valid: boolWhether the reference is valid
target_object: Option<DomainObject>Target object if reference resolves
error_message: Option<String>Error message if validation failed
suggestions: Vec<String>Suggestions for fixing broken reference
Trait Implementations§
Source§impl Clone for ReferenceValidationResult
impl Clone for ReferenceValidationResult
Source§fn clone(&self) -> ReferenceValidationResult
fn clone(&self) -> ReferenceValidationResult
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 ReferenceValidationResult
impl RefUnwindSafe for ReferenceValidationResult
impl Send for ReferenceValidationResult
impl Sync for ReferenceValidationResult
impl Unpin for ReferenceValidationResult
impl UnwindSafe for ReferenceValidationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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