pub struct CreateLinkData {
pub base_address: HoloHash<AnyLinkable>,
pub target_address: HoloHash<AnyLinkable>,
pub zome_index: ZomeIndex,
pub link_type: LinkType,
pub tag: LinkTag,
}Expand description
Per-variant data for ActionType::CreateLink.
Fields§
§base_address: HoloHash<AnyLinkable>The hash the link points from.
target_address: HoloHash<AnyLinkable>The hash the link points to.
zome_index: ZomeIndexIndex of the zome that defined this link type.
link_type: LinkTypeLink type identifier within the zome.
tag: LinkTagOpaque tag attached to the link.
Trait Implementations§
Source§impl Clone for CreateLinkData
impl Clone for CreateLinkData
Source§fn clone(&self) -> CreateLinkData
fn clone(&self) -> CreateLinkData
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 CreateLinkData
impl Debug for CreateLinkData
Source§impl<'de> Deserialize<'de> for CreateLinkData
impl<'de> Deserialize<'de> for CreateLinkData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateLinkData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateLinkData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CreateLinkData
Source§impl Hash for CreateLinkData
impl Hash for CreateLinkData
Source§impl IntoActionData for CreateLinkData
impl IntoActionData for CreateLinkData
Source§fn into_action_data(self) -> ActionData
fn into_action_data(self) -> ActionData
Embed this data back into the matching
ActionData variant.Source§impl PartialEq for CreateLinkData
impl PartialEq for CreateLinkData
Source§impl Serialize for CreateLinkData
impl Serialize for CreateLinkData
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
impl StructuralPartialEq for CreateLinkData
Source§impl TryFrom<&CreateLinkData> for SerializedBytes
impl TryFrom<&CreateLinkData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &CreateLinkData) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &CreateLinkData) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<CreateLinkData> for SerializedBytes
impl TryFrom<CreateLinkData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: CreateLinkData) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: CreateLinkData) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for CreateLinkData
impl TryFrom<SerializedBytes> for CreateLinkData
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<CreateLinkData, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<CreateLinkData, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateLinkData
impl RefUnwindSafe for CreateLinkData
impl Send for CreateLinkData
impl Sync for CreateLinkData
impl Unpin for CreateLinkData
impl UnsafeUnpin for CreateLinkData
impl UnwindSafe for CreateLinkData
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.