runx_contracts::reference
Reference contracts: typed references to receipts, acts, and external surfaces.
Structs §
Reference §
Implementations §
impl Reference
with_uri
fn with_uri(reference_type: ReferenceType, uri: impl Into<NonEmptyString>) -> SelfA reference to an explicit URI, with no provider/locator/label/proof.
runx
fn runx(reference_type: ReferenceType, id: &str) -> SelfA reference whose URI is the canonical runx:<type>:<id> scheme.
Trait Implementations §
impl Borrow for Reference
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for Reference
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for Reference
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for Reference
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for Reference
Output
impl Clone for Reference
clone
fn clone(self: &Self) -> Referenceimpl Debug for Reference
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl PartialEq for Reference
eq
fn eq(self: &Self, other: &Reference) -> boolimpl 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::Valueimpl 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
ReferenceLink §
Trait Implementations §
impl Borrow for ReferenceLink
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for ReferenceLink
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl CloneToUninit for ReferenceLink
clone_to_uninit
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)impl Into for ReferenceLink
into
fn into(self: Self) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ReferenceLink
from
fn from(t: T) -> TReturns the argument unchanged.
impl TryInto for ReferenceLink
Error
try_into
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>impl TryFrom for ReferenceLink
Error
try_from
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl Any for ReferenceLink
type_id
fn type_id(self: &Self) -> TypeIdimpl ToOwned for ReferenceLink
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for ReferenceLink
Output
impl Clone for ReferenceLink
clone
fn clone(self: &Self) -> ReferenceLinkimpl Debug for ReferenceLink
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl PartialEq for ReferenceLink
eq
fn eq(self: &Self, other: &ReferenceLink) -> boolimpl Serialize for ReferenceLink
serialize
fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>impl Deserialize for ReferenceLink
deserialize
fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>impl RunxSchema for ReferenceLink
json_schema
fn json_schema() -> ::serde_json::Valueimpl Send for ReferenceLink
impl Sync for ReferenceLink
impl Freeze for ReferenceLink
impl UnsafeUnpin for ReferenceLink
impl Unpin for ReferenceLink
impl UnwindSafe for ReferenceLink
impl RefUnwindSafe for ReferenceLink
impl DeserializeOwned for ReferenceLink
impl StructuralPartialEq for ReferenceLink
impl Eq for ReferenceLink
ActRef §
Trait Implementations §
impl Borrow for ActRef
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for ActRef
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ActRef
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for ActRef
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for ActRef
Output
impl Clone for ActRef
clone
fn clone(self: &Self) -> ActRefimpl Debug for ActRef
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl PartialEq for ActRef
eq
fn eq(self: &Self, other: &ActRef) -> boolimpl 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::Valueimpl 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 §
Implementations §
impl ReferenceType
as_str
fn as_str(self: &Self) -> &'static strStable 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) -> &Timpl BorrowMut for ReferenceType
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ReferenceType
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for ReferenceType
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for ReferenceType
Output
impl Clone for ReferenceType
clone
fn clone(self: &Self) -> ReferenceTypeimpl Debug for ReferenceType
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl PartialEq for ReferenceType
eq
fn eq(self: &Self, other: &ReferenceType) -> boolimpl 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::Valueimpl 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 §
Trait Implementations §
impl Borrow for ProofKind
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for ProofKind
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ProofKind
from
fn from(t: T) -> TReturns the argument unchanged.