pub struct RenderRequest<'a> {
pub adapter: ProtocolAdapter,
pub adapter_id: &'a str,
pub adapter_version: &'a str,
pub integration_mode: IntegrationMode,
pub event: LifecycleEventKind,
pub frame: Option<&'a FrameContext>,
pub payloads: &'a [ProtocolPayload<'a>],
pub directive: Option<&'a FrameAdmissionDirective>,
}Expand description
Inputs for a hook-protocol render.
adapter_id and adapter_version are passed as neutral strings so
the renderer can be invoked without a manifest registry lookup;
callers that have a crate::AdapterManifest in hand can pass its
fields directly. integration_mode and frame are accepted but
currently advisory — they enable later renderer variants without
signature churn.
Fields§
§adapter: ProtocolAdapter§adapter_id: &'a str§adapter_version: &'a str§integration_mode: IntegrationMode§event: LifecycleEventKind§frame: Option<&'a FrameContext>§payloads: &'a [ProtocolPayload<'a>]§directive: Option<&'a FrameAdmissionDirective>Implementations§
Source§impl<'a> RenderRequest<'a>
impl<'a> RenderRequest<'a>
Sourcepub fn minimal(
adapter: ProtocolAdapter,
adapter_id: &'a str,
adapter_version: &'a str,
integration_mode: IntegrationMode,
event: LifecycleEventKind,
) -> Self
pub fn minimal( adapter: ProtocolAdapter, adapter_id: &'a str, adapter_version: &'a str, integration_mode: IntegrationMode, event: LifecycleEventKind, ) -> Self
Convenience constructor for the common no-payload, no-directive case.
Trait Implementations§
Source§impl<'a> Clone for RenderRequest<'a>
impl<'a> Clone for RenderRequest<'a>
Source§fn clone(&self) -> RenderRequest<'a>
fn clone(&self) -> RenderRequest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for RenderRequest<'a>
impl<'a> RefUnwindSafe for RenderRequest<'a>
impl<'a> Send for RenderRequest<'a>
impl<'a> Sync for RenderRequest<'a>
impl<'a> Unpin for RenderRequest<'a>
impl<'a> UnsafeUnpin for RenderRequest<'a>
impl<'a> UnwindSafe for RenderRequest<'a>
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