pub struct ProviderRequest {
pub schema_version: u16,
pub projection_policy_ref: String,
pub messages: Vec<ProviderMessage>,
pub projection_item_count: usize,
pub structured_output_hint: Option<ProviderStructuredOutputHint>,
}Expand description
Carries provider request data across a host-port boundary. Constructing the value does not call the host; the port method that receives it documents any adapter, network, or storage effect.
Fields§
§schema_version: u16Wire schema version used for compatibility checks.
projection_policy_ref: StringTyped projection policy ref reference. Resolving or executing it is a separate policy-gated step.
messages: Vec<ProviderMessage>Bounded messages included in this record. Limits and truncation are represented by companion metadata when applicable.
projection_item_count: usizeCount of projection item items observed or included in this record.
structured_output_hint: Option<ProviderStructuredOutputHint>Optional structured output hint value. When absent, callers should use the documented default or skip that optional behavior.
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
Sourcepub const SCHEMA_VERSION: u16 = 1
pub const SCHEMA_VERSION: u16 = 1
Constant value for the ports::provider contract. Use it to keep SDK records and tests aligned on the same stable value.
Sourcepub fn with_structured_output_hint(self, contract: &OutputContract) -> Self
pub fn with_structured_output_hint(self, contract: &OutputContract) -> Self
Returns this value with its structured output hint setting replaced. The method follows builder-style data construction and does not execute external work.
Trait Implementations§
Source§impl Clone for ProviderRequest
impl Clone for ProviderRequest
Source§fn clone(&self) -> ProviderRequest
fn clone(&self) -> ProviderRequest
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 ProviderRequest
impl Debug for ProviderRequest
Source§impl<'de> Deserialize<'de> for ProviderRequest
impl<'de> Deserialize<'de> for ProviderRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ProviderRequest
impl PartialEq for ProviderRequest
Source§fn eq(&self, other: &ProviderRequest) -> bool
fn eq(&self, other: &ProviderRequest) -> bool
self and other values to be equal, and is used by ==.