Skip to main content

IcManagementRequestRecord

Struct IcManagementRequestRecord 

Source
pub struct IcManagementRequestRecord { /* private fields */ }
Expand description

Immutable v1 request declaration with model-derived exact Candid bytes.

All supported methods use replicated update ingress, including observations. Network/caller selection, signing, freshness, budgets, custody and lifecycle safety are not granted by this record or its digest.

Implementations§

Source§

impl IcManagementRequestRecord

Source

pub fn new(request: IcManagementRequest) -> Result<Self, IcRequestError>

Validate the closed request and encode exact host-ingress arguments.

Capture retains code and creates a new snapshot; sender canister version stays absent for host ingress. Load names exact raw bytes, with no identity remap.

§Errors

Rejects malformed principals, missing/unexpected/oversized snapshot IDs, Candid encoding failure and excessive derived argument bytes.

Source

pub const fn method(&self) -> IcManagementMethodRecord

Read the exact closed method; its effect class does not grant spending authority.

Source

pub fn target(&self) -> &str

Read the canonical effective routing target, also encoded inside the arguments.

Source

pub fn snapshot_id(&self) -> Option<&[u8]>

Read exact raw load snapshot bytes, without backend token interpretation.

Source

pub fn arguments(&self) -> &[u8] ⓘ

Read derived exact Candid bytes for a future qualified update-ingress transport.

Source

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

Read the fixed management receiver; the effective routing target is separate.

Source

pub fn digest(&self) -> ArtifactChecksumRecord

Hash fixed receiver, effective target, update mode, exact method and Candid bytes.

Network/caller/intent/release/budgets stay outside this nonrecursive payload digest and are bound by the existing operation plan/attempt authority.

Source

pub fn validate_mutation_binding( &self, binding: &OperationBindingRecord, ) -> Result<(), IcRequestError>

Check exact payload target/digest and mutation class against original declared binding.

This verifies bytes only; it does not authenticate the binding or admit dispatch.

§Errors

Rejects observation methods and changed target or request digest.

Source

pub fn validate_observation_binding( &self, binding: &OperationBindingRecord, request: &ArtifactChecksumRecord, ) -> Result<(), IcRequestError>

Check an observation payload against its exact target and reserved observation digest.

The original binding still names the mutation. The observation digest is separately retained by the existing journal’s observation reservation.

§Errors

Rejects mutation methods, changed target or a different observation digest.

Trait Implementations§

Source§

impl Clone for IcManagementRequestRecord

Source§

fn clone(&self) -> Self

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 Debug for IcManagementRequestRecord

Source§

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

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

impl<'de> Deserialize<'de> for IcManagementRequestRecord

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for IcManagementRequestRecord

Source§

impl PartialEq for IcManagementRequestRecord

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Serialize for IcManagementRequestRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for IcManagementRequestRecord

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.