Skip to main content

ContractId

Struct ContractId 

Source
pub struct ContractId(/* private fields */);

Implementations§

Source§

impl ContractId

Source

pub const COMPATIBILITY_MANIFEST_SCHEMA: Self

Source

pub const CONTRACT_REGISTRY: Self

Source

pub const CONTRACT_REGISTRY_SCHEMA: Self

Source

pub const ERROR_CODES_SCHEMA: Self

Source

pub const HOST_CAPABILITY_COMPATIBILITY_SCHEMA: Self

Source

pub const HOST_CAPABILITY_CONTRACT_SCHEMA: Self

Source

pub const HOST_CAPABILITY_MANIFEST_SCHEMA: Self

Source

pub const HOST_CAPABILITY_NOTICES_SCHEMA: Self

Source

pub const HOST_CAPABILITY_PIN_SCHEMA: Self

Source

pub const HOST_CAPABILITY_SIGNATURE_SCHEMA: Self

Source

pub const IFRAME_BRIDGE_SCHEMA: Self

Source

pub const MANIFEST_SCHEMA: Self

Source

pub const NETWORK_GRANT_SCHEMA: Self

Source

pub const OPAQUE_SURFACE_DOCUMENT_SCHEMA: Self

Source

pub const OPAQUE_SURFACE_TRANSPORT_SCHEMA: Self

Source

pub const OWNER_SCOPE_INVENTORY_REGISTRY: Self

Source

pub const OWNER_SCOPE_INVENTORY_SCHEMA: Self

Source

pub const OWNER_SCOPE_MIGRATION_SCHEMA: Self

Source

pub const OWNER_SCOPE_ROOT_RECOVERY_SCHEMA: Self

Source

pub const PACKAGE_SIGNATURE_SCHEMA: Self

Source

pub const PERFORMANCE_CONTRACT: Self

Source

pub const PERFORMANCE_EVIDENCE_SCHEMA: Self

Source

pub const PLATFORM_PACKAGE_PUBLICATION_SCHEMA: Self

Source

pub const PLATFORM_PACKAGE_SET_SCHEMA: Self

Source

pub const PLUGIN_PLATFORM_OPENAPI: Self

Source

pub const PROCESS_CONTAINMENT_SCHEMA: Self

Source

pub const QUARANTINE_CLEANUP_SCHEMA: Self

Source

pub const RELEASE_METADATA_SCHEMA: Self

Source

pub const RELEASE_REVOCATION_POINTER_SCHEMA: Self

Source

pub const RELEASE_REVOCATION_SCHEMA: Self

Source

pub const RELEASE_ROOT_DELEGATION_SCHEMA: Self

Source

pub const RELEASE_SIGNATURE_ENVELOPE_SCHEMA: Self

Source

pub const RELEASE_SIGNING_LEDGER_EVIDENCE_SCHEMA: Self

Source

pub const RELEASE_SIGNING_LEDGER_RECEIPT_SCHEMA: Self

Source

pub const RELEASE_SIGNING_LEDGER_SCHEMA: Self

Source

pub const RELEASE_SIGNING_SUBJECT_SCHEMA: Self

Source

pub const RELEASE_SOURCE_POLICY_POINTER_SCHEMA: Self

Source

pub const RELEASE_SOURCE_POLICY_SCHEMA: Self

Source

pub const RELEASE_TRUST_STATE_SCHEMA: Self

Source

pub const RESOURCE_SCOPE_SCHEMA: Self

Source

pub const RUNTIME_ADMISSION_SCHEMA: Self

Source

pub const RUNTIME_DESCRIPTOR_SCHEMA: Self

Source

pub const RUNTIME_EXEC_JOURNAL_SCHEMA: Self

Source

pub const RUST_IPC_SCHEMA: Self

Source

pub const SESSION_SCOPE_SCHEMA: Self

Source

pub const TARGET_CLASSIFIER_FIXTURE: Self

Source

pub const TOKEN_TICKET_SCHEMA: Self

Source

pub const TRUSTED_TIME_EVIDENCE_SCHEMA: Self

Source

pub const TRUSTED_TIME_LEAF_SCHEMA: Self

Source

pub const WASM_WORKER_SCHEMA: Self

Source

pub const WORKER_INVOCATION_SCHEMA: Self

Source§

impl ContractId

Source

pub const fn as_str(self) -> &'static str

Source

pub fn parse(value: &str) -> Result<Self, ContractError>

Trait Implementations§

Source§

impl Clone for ContractId

Source§

fn clone(&self) -> ContractId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ContractId

Source§

impl Debug for ContractId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ContractId

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ContractId

Source§

impl Hash for ContractId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ContractId

Source§

fn cmp(&self, other: &ContractId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ContractId

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for ContractId

Source§

fn partial_cmp(&self, other: &ContractId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for ContractId

Source§

impl TryFrom<&str> for ContractId

Source§

type Error = ContractError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.