pub struct RelationDraft {
pub kind: RelationKind,
pub target: RecordId,
pub target_locator: Option<String>,
pub certainty: Certainty,
pub sources: Vec<SourceRef>,
pub note: Option<String>,
}Expand description
Input for asserting a relation. Assertion metadata comes from the command.
Fields§
§kind: RelationKind§target: RecordId§target_locator: Option<String>§certainty: Certainty§sources: Vec<SourceRef>§note: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for RelationDraft
impl Clone for RelationDraft
Source§fn clone(&self) -> RelationDraft
fn clone(&self) -> RelationDraft
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 RelationDraft
impl Debug for RelationDraft
Source§impl<'de> Deserialize<'de> for RelationDraft
impl<'de> Deserialize<'de> for RelationDraft
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 RelationDraft
impl PartialEq for RelationDraft
Source§impl Serialize for RelationDraft
impl Serialize for RelationDraft
impl StructuralPartialEq for RelationDraft
Auto Trait Implementations§
impl Freeze for RelationDraft
impl RefUnwindSafe for RelationDraft
impl Send for RelationDraft
impl Sync for RelationDraft
impl Unpin for RelationDraft
impl UnsafeUnpin for RelationDraft
impl UnwindSafe for RelationDraft
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