pub struct ApplicationPorts {
pub gateway: Arc<dyn GatewayPort>,
pub codemode: Arc<dyn CodeModePort>,
pub openapi: Arc<dyn OpenApiPort>,
}Expand description
Bundle of the engine ports the application depends on.
Fields§
§gateway: Arc<dyn GatewayPort>MCP gateway engine port.
codemode: Arc<dyn CodeModePort>Code Mode engine port.
openapi: Arc<dyn OpenApiPort>OpenAPI engine port.
Implementations§
Source§impl ApplicationPorts
impl ApplicationPorts
Builds a port bundle where every engine reports itself as unavailable.
Sourcepub fn with_gateway(self, gateway: Arc<dyn GatewayPort>) -> Self
pub fn with_gateway(self, gateway: Arc<dyn GatewayPort>) -> Self
Replaces the gateway port and returns the updated bundle.
Sourcepub fn with_codemode(self, codemode: Arc<dyn CodeModePort>) -> Self
pub fn with_codemode(self, codemode: Arc<dyn CodeModePort>) -> Self
Replaces the Code Mode port and returns the updated bundle.
Sourcepub fn with_openapi(self, openapi: Arc<dyn OpenApiPort>) -> Self
pub fn with_openapi(self, openapi: Arc<dyn OpenApiPort>) -> Self
Replaces the OpenAPI port and returns the updated bundle.
Auto Trait Implementations§
impl Freeze for ApplicationPorts
impl !RefUnwindSafe for ApplicationPorts
impl Send for ApplicationPorts
impl Sync for ApplicationPorts
impl Unpin for ApplicationPorts
impl UnsafeUnpin for ApplicationPorts
impl !UnwindSafe for ApplicationPorts
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more