pub struct InvokeProgramRequest {
pub program: Option<ObjectAddress>,
pub invocation_id: String,
pub program_hash: Vec<u8>,
pub input_json: Vec<u8>,
pub durability: i32,
}Expand description
This is the only public operation in this service with atomic multi-path
visibility. A program definition is an ordinary immutable object at the
bucket-relative path _anvil/programs/{name}@{version}. It is
written through StartPut with PutImmutableOperation, followed by Put and
PutEnd, and is governed by the same path authorization as every other
object. The invocation pins that ordinary object’s full address and content
hash.
Fields§
§program: Option<ObjectAddress>§invocation_id: String§program_hash: Vec<u8>Exactly the 32-byte BLAKE3 hash returned by HeadObject for the pinned immutable program definition.
input_json: Vec<u8>UTF-8 JSON object containing arguments, inputs, blobs and bindings. Anvil validates and canonicalizes it before deriving the invocation fingerprint.
durability: i32Implementations§
Source§impl InvokeProgramRequest
impl InvokeProgramRequest
Sourcepub fn durability(&self) -> Durability
pub fn durability(&self) -> Durability
Returns the enum value of durability, or the default if the field is set to an invalid enum value.
Sourcepub fn set_durability(&mut self, value: Durability)
pub fn set_durability(&mut self, value: Durability)
Sets durability to the provided enum value.
Trait Implementations§
Source§impl Clone for InvokeProgramRequest
impl Clone for InvokeProgramRequest
Source§fn clone(&self) -> InvokeProgramRequest
fn clone(&self) -> InvokeProgramRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InvokeProgramRequest
impl Debug for InvokeProgramRequest
Source§impl Default for InvokeProgramRequest
impl Default for InvokeProgramRequest
impl Eq for InvokeProgramRequest
Source§impl Hash for InvokeProgramRequest
impl Hash for InvokeProgramRequest
Source§impl Message for InvokeProgramRequest
impl Message for InvokeProgramRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for InvokeProgramRequest
impl PartialEq for InvokeProgramRequest
impl StructuralPartialEq for InvokeProgramRequest
Auto Trait Implementations§
impl Freeze for InvokeProgramRequest
impl RefUnwindSafe for InvokeProgramRequest
impl Send for InvokeProgramRequest
impl Sync for InvokeProgramRequest
impl Unpin for InvokeProgramRequest
impl UnsafeUnpin for InvokeProgramRequest
impl UnwindSafe for InvokeProgramRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request