pub struct OverlayFrameworkRuntime {
pub agent: AcpAgent,
pub base_url: String,
pub inbound_adapter: OverlayInboundAdapter,
pub outbound_adapter: OverlayOutboundAdapter,
}Fields§
§agent: AcpAgent§base_url: String§inbound_adapter: OverlayInboundAdapter§outbound_adapter: OverlayOutboundAdapterImplementations§
Source§impl OverlayFrameworkRuntime
impl OverlayFrameworkRuntime
pub fn create( agent: AcpAgent, base_url: &str, business_handler: BusinessHandler, passthrough_handler: Option<PassthroughHandler>, ) -> AcpResult<Self>
pub fn handle_message_body(&mut self, body: &Value) -> OverlayHttpResponse
pub fn well_known_document(&self) -> AcpResult<Map<String, Value>>
pub fn well_known_headers() -> Map<String, Value>
pub fn identity_document_payload(&self) -> Map<String, Value>
pub fn send_business_payload( &mut self, payload: Map<String, Value>, target_base_url: Option<&str>, recipient_agent_id: Option<&str>, context: Option<String>, delivery_mode: Option<DeliveryMode>, expires_in_seconds: i64, ) -> AcpResult<Map<String, Value>>
pub fn send_acp( &mut self, target_url: &str, payload: Map<String, Value>, recipient_agent_id: Option<&str>, context: Option<String>, delivery_mode: Option<DeliveryMode>, expires_in_seconds: i64, ) -> AcpResult<Map<String, Value>>
pub fn handle( request_body: &Value, business_handler: BusinessHandler, config: OverlayConfig, ) -> OverlayHttpResponse
Trait Implementations§
Source§impl Clone for OverlayFrameworkRuntime
impl Clone for OverlayFrameworkRuntime
Source§fn clone(&self) -> OverlayFrameworkRuntime
fn clone(&self) -> OverlayFrameworkRuntime
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for OverlayFrameworkRuntime
impl !RefUnwindSafe for OverlayFrameworkRuntime
impl Send for OverlayFrameworkRuntime
impl Sync for OverlayFrameworkRuntime
impl Unpin for OverlayFrameworkRuntime
impl UnsafeUnpin for OverlayFrameworkRuntime
impl !UnwindSafe for OverlayFrameworkRuntime
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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