pub struct ProviderMessage {
pub role: ProviderMessageRole,
pub content: String,
pub privacy: PrivacyClass,
pub projected_metadata: Option<ProviderProjectedMetadata>,
}Expand description
Carries provider message 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§
§role: ProviderMessageRoleRole used by this record or request.
content: StringBounded textual content extracted for caller use; absent for binary summaries or denied raw access.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
projected_metadata: Option<ProviderProjectedMetadata>Optional projected metadata value. When absent, callers should use the documented default or skip that optional behavior.
Trait Implementations§
Source§impl Clone for ProviderMessage
impl Clone for ProviderMessage
Source§fn clone(&self) -> ProviderMessage
fn clone(&self) -> ProviderMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderMessage
impl Debug for ProviderMessage
Source§impl<'de> Deserialize<'de> for ProviderMessage
impl<'de> Deserialize<'de> for ProviderMessage
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProviderMessage
impl PartialEq for ProviderMessage
Source§fn eq(&self, other: &ProviderMessage) -> bool
fn eq(&self, other: &ProviderMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderMessage
impl Serialize for ProviderMessage
impl Eq for ProviderMessage
impl StructuralPartialEq for ProviderMessage
Auto Trait Implementations§
impl Freeze for ProviderMessage
impl RefUnwindSafe for ProviderMessage
impl Send for ProviderMessage
impl Sync for ProviderMessage
impl Unpin for ProviderMessage
impl UnsafeUnpin for ProviderMessage
impl UnwindSafe for ProviderMessage
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
Mutably borrows from an owned value. Read more