Home
runx-contracts

runx_contracts::reference

Reference contracts: typed references to receipts, acts, and external surfaces.

Reference contracts: typed references to receipts, acts, and external surfaces.

Structs §

Reference §

pub struct runx_contracts::reference::Reference { /* ... */ }

Implementations §

impl Reference

with_uri

fn with_uri(reference_type: ReferenceType, uri: impl Into<NonEmptyString>) -> Self

A reference to an explicit URI, with no provider/locator/label/proof.

runx

fn runx(reference_type: ReferenceType, id: &str) -> Self

A reference whose URI is the canonical runx:<type>:<id> scheme.

Trait Implementations §

impl Borrow for Reference

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for Reference

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for Reference

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for Reference

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for Reference

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for Reference

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for Reference

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for Reference

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for Reference

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for Reference

Output

impl Clone for Reference

clone

fn clone(self: &Self) -> Reference

impl Debug for Reference

impl PartialEq for Reference

eq

fn eq(self: &Self, other: &Reference) -> bool

impl Serialize for Reference

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for Reference

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl RunxSchema for Reference

json_schema

fn json_schema() -> ::serde_json::Value

impl Send for Reference

impl Sync for Reference

impl Freeze for Reference

impl UnsafeUnpin for Reference

impl Unpin for Reference

impl UnwindSafe for Reference

impl RefUnwindSafe for Reference

impl DeserializeOwned for Reference

impl StructuralPartialEq for Reference

impl Eq for Reference

pub struct runx_contracts::reference::ReferenceLink { /* ... */ }

borrow

fn borrow(self: &Self) -> &T

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

from

fn from(t: T) -> T

Returns the argument unchanged.

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

type_id

fn type_id(self: &Self) -> TypeId

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

Output

clone

fn clone(self: &Self) -> ReferenceLink

eq

fn eq(self: &Self, other: &ReferenceLink) -> bool

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

json_schema

fn json_schema() -> ::serde_json::Value

ActRef §

pub struct runx_contracts::reference::ActRef { /* ... */ }

Trait Implementations §

impl Borrow for ActRef

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ActRef

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ActRef

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ActRef

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ActRef

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ActRef

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ActRef

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ActRef

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ActRef

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ActRef

Output

impl Clone for ActRef

clone

fn clone(self: &Self) -> ActRef

impl Debug for ActRef

impl PartialEq for ActRef

eq

fn eq(self: &Self, other: &ActRef) -> bool

impl Serialize for ActRef

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for ActRef

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl RunxSchema for ActRef

json_schema

fn json_schema() -> ::serde_json::Value

impl Send for ActRef

impl Sync for ActRef

impl Freeze for ActRef

impl UnsafeUnpin for ActRef

impl Unpin for ActRef

impl UnwindSafe for ActRef

impl RefUnwindSafe for ActRef

impl DeserializeOwned for ActRef

impl StructuralPartialEq for ActRef

impl Eq for ActRef

Enums §

ReferenceType §

pub enum runx_contracts::reference::ReferenceType { /* ... */ }

Implementations §

impl ReferenceType

as_str

fn as_str(self: &Self) -> &'static str

Stable snake_case wire name for this reference type. Matches the serde representation and the runx:<name>:<id> URI segment.

Trait Implementations §

impl Borrow for ReferenceType

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ReferenceType

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ReferenceType

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ReferenceType

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ReferenceType

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ReferenceType

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ReferenceType

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ReferenceType

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ReferenceType

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ReferenceType

Output

impl Clone for ReferenceType

clone

fn clone(self: &Self) -> ReferenceType

impl Debug for ReferenceType

impl PartialEq for ReferenceType

eq

fn eq(self: &Self, other: &ReferenceType) -> bool

impl Serialize for ReferenceType

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for ReferenceType

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl RunxSchema for ReferenceType

json_schema

fn json_schema() -> ::serde_json::Value

impl Send for ReferenceType

impl Sync for ReferenceType

impl Freeze for ReferenceType

impl UnsafeUnpin for ReferenceType

impl Unpin for ReferenceType

impl UnwindSafe for ReferenceType

impl RefUnwindSafe for ReferenceType

impl DeserializeOwned for ReferenceType

impl StructuralPartialEq for ReferenceType

impl Eq for ReferenceType

ProofKind §

pub enum runx_contracts::reference::ProofKind { /* ... */ }

Trait Implementations §

impl Borrow for ProofKind

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ProofKind

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ProofKind

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ProofKind

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ProofKind

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ProofKind

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ProofKind

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ProofKind

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ProofKind

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ProofKind

Output

impl Clone for ProofKind

clone

fn clone(self: &Self) -> ProofKind

impl Debug for ProofKind

impl PartialEq for ProofKind

eq

fn eq(self: &Self, other: &ProofKind) -> bool

impl Serialize for ProofKind

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for ProofKind

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl RunxSchema for ProofKind

json_schema

fn json_schema() -> ::serde_json::Value

impl Send for ProofKind

impl Sync for ProofKind

impl Freeze for ProofKind

impl UnsafeUnpin for ProofKind

impl Unpin for ProofKind

impl UnwindSafe for ProofKind

impl RefUnwindSafe for ProofKind

impl DeserializeOwned for ProofKind

impl StructuralPartialEq for ProofKind

impl Eq for ProofKind