pub struct ResolvedPin {
pub note: Option<String>,
pub content: Option<String>,
}Expand description
A pin resolved to its target’s content, for injection previews.
note is the pin’s reason (Node: pin.note); content is the target
observation/summary content the pin points at (Node: pin.content, which
the TS listActivePins join hydrates). Either may be absent: a pin can have
no reason, and its target may have been redacted or deleted.
Fields§
§note: Option<String>Pin reason / note (pin.note in the Node hook). None renders as the
literal Pin label.
content: Option<String>Target content (pin.content in the Node hook). None renders as
(no content).
Trait Implementations§
Source§impl Clone for ResolvedPin
impl Clone for ResolvedPin
Source§fn clone(&self) -> ResolvedPin
fn clone(&self) -> ResolvedPin
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 ResolvedPin
impl Debug for ResolvedPin
impl Eq for ResolvedPin
Source§impl PartialEq for ResolvedPin
impl PartialEq for ResolvedPin
Source§fn eq(&self, other: &ResolvedPin) -> bool
fn eq(&self, other: &ResolvedPin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedPin
Auto Trait Implementations§
impl Freeze for ResolvedPin
impl RefUnwindSafe for ResolvedPin
impl Send for ResolvedPin
impl Sync for ResolvedPin
impl Unpin for ResolvedPin
impl UnsafeUnpin for ResolvedPin
impl UnwindSafe for ResolvedPin
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.