pub struct ExactLink {
pub namespace: NamespaceId,
pub subspace: SubspaceId,
pub path: EntityPath,
}
Expand description
Similar to a [types::Link
], but with a resolved namespace and subspace.
Fields§
§namespace: NamespaceId
§subspace: SubspaceId
§path: EntityPath
Trait Implementations§
Source§impl BorshDeserialize for ExactLink
impl BorshDeserialize for ExactLink
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ExactLink
impl BorshSerialize for ExactLink
Source§impl<P: Into<EntityPath>> From<([u8; 32], [u8; 32], P)> for ExactLink
impl<P: Into<EntityPath>> From<([u8; 32], [u8; 32], P)> for ExactLink
Source§fn from((n, s, p): (NamespaceId, SubspaceId, P)) -> Self
fn from((n, s, p): (NamespaceId, SubspaceId, P)) -> Self
Converts to this type from the input type.
Source§impl Ord for ExactLink
impl Ord for ExactLink
Source§impl PartialOrd for ExactLink
impl PartialOrd for ExactLink
impl Eq for ExactLink
impl StructuralPartialEq for ExactLink
Auto Trait Implementations§
impl Freeze for ExactLink
impl RefUnwindSafe for ExactLink
impl Send for ExactLink
impl Sync for ExactLink
impl Unpin for ExactLink
impl UnwindSafe for ExactLink
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