pub struct Link {
pub author: HoloHash<Agent>,
pub base: HoloHash<AnyLinkable>,
pub target: HoloHash<AnyLinkable>,
pub timestamp: Timestamp,
pub zome_index: ZomeIndex,
pub link_type: LinkType,
pub tag: LinkTag,
pub create_link_hash: HoloHash<Action>,
}
Fields§
The author of this link
base: HoloHash<AnyLinkable>
The AnyLinkableHash being linked from
target: HoloHash<AnyLinkable>
The AnyLinkableHash being linked to
timestamp: Timestamp
When the link was added
zome_index: ZomeIndex
The ZomeIndex
for where this link is defined.
link_type: LinkType
The LinkType
for this link.
tag: LinkTag
A tag used to find this link
create_link_hash: HoloHash<Action>
The hash of this link’s create action
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Link, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Link, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Link
impl Ord for Link
Source§impl PartialOrd for Link
impl PartialOrd for Link
Source§impl Serialize for Link
impl Serialize for Link
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&Link> for SerializedBytes
impl TryFrom<&Link> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &Link) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &Link) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<Link> for SerializedBytes
impl TryFrom<Link> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: Link) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: Link) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for Link
impl TryFrom<SerializedBytes> for Link
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<Link, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<Link, SerializedBytesError>
Performs the conversion.
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.