pub struct ChildRequest {
pub call: u64,
pub operation: String,
pub payload: Vec<u8>,
pub fingerprint: Vec<u8>,
pub policy: Option<OperationPolicy>,
pub watch: bool,
pub max_response_bytes: u64,
pub background: bool,
pub json: Option<String>,
}Expand description
Submits a dependency call from the current attempt or unanswered samples window under its inherited caller context and checked grants.
Fields§
§call: u64Chosen by the plugin, unique within this Invoke or Samples call, including across windows.
operation: StringComplete admitted operation routing identity; no provider prefix or provider selection is added.
payload: Vec<u8>Encoded request message of the operation bound by fingerprint.
fingerprint: Vec<u8>Fingerprint the plugin was built against.
policy: Option<OperationPolicy>Optional override of the callee’s policy for this call.
watch: boolExplicit server-streaming child; each item requires one ChildDemand.
max_response_bytes: u64Consumer-owned maximum encoded item size; required for Watch.
background: boolPolicy guard timers do not make the executing handler idle.
json: Option<String>Standard Protobuf JSON request. When present, payload and fingerprint must be empty; the host resolves the served contract and returns UTF-8 JSON in ChildResponse.payload.
Implementations§
Trait Implementations§
Source§impl Clone for ChildRequest
impl Clone for ChildRequest
Source§impl Debug for ChildRequest
impl Debug for ChildRequest
Source§impl Default for ChildRequest
impl Default for ChildRequest
impl Eq for ChildRequest
Source§impl Hash for ChildRequest
impl Hash for ChildRequest
Source§impl Message for ChildRequest
impl Message for ChildRequest
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 ChildRequest
impl PartialEq for ChildRequest
Source§impl ReflectMessage for ChildRequest
impl ReflectMessage for ChildRequest
Source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
MessageDescriptor describing the type of this message.Source§fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
DynamicMessage by going
through the byte representation.impl StructuralPartialEq for ChildRequest
Auto Trait Implementations§
impl Forget for ChildRequest
impl Freeze for ChildRequest
impl Move for ChildRequest
impl RefUnwindSafe for ChildRequest
impl Send for ChildRequestwhere
RawVecInner: Send,
impl Sync for ChildRequestwhere
RawVecInner: Sync,
impl Unpin for ChildRequest
impl UnsafeUnpin for ChildRequest
impl UnwindSafe for ChildRequestwhere
RawVecInner: UnwindSafe,
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