pub struct ResolvedRef {
pub id: Option<String>,
pub raw_name: String,
pub resolved: bool,
pub candidates: Vec<Candidate>,
}Expand description
A reference to a 40kdc entity that may or may not have resolved. Retains the source’s raw name so the import is lossless even on a miss.
Fields§
§id: Option<String>Resolved entity id, or None when no match was found.
raw_name: StringThe display name exactly as it appeared in the source payload.
resolved: boolTrue iff id is Some.
candidates: Vec<Candidate>Up to five best-guess alternatives when resolution failed.
Trait Implementations§
Source§impl Clone for ResolvedRef
impl Clone for ResolvedRef
Source§fn clone(&self) -> ResolvedRef
fn clone(&self) -> ResolvedRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedRef
impl Debug for ResolvedRef
Source§impl<'de> Deserialize<'de> for ResolvedRef
impl<'de> Deserialize<'de> for ResolvedRef
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedRef
impl PartialEq for ResolvedRef
Source§fn eq(&self, other: &ResolvedRef) -> bool
fn eq(&self, other: &ResolvedRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedRef
impl Serialize for ResolvedRef
impl StructuralPartialEq for ResolvedRef
Auto Trait Implementations§
impl Freeze for ResolvedRef
impl RefUnwindSafe for ResolvedRef
impl Send for ResolvedRef
impl Sync for ResolvedRef
impl Unpin for ResolvedRef
impl UnsafeUnpin for ResolvedRef
impl UnwindSafe for ResolvedRef
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