pub struct SystemOneService {
pub state: AppState,
pub auth: AuthConfig,
}Expand description
gRPC service implementation of the openkind.SystemOne service contract.
Fields§
§state: AppStateShared application state containing the model registry.
auth: AuthConfigAuthentication configuration.
Implementations§
Source§impl SystemOneService
impl SystemOneService
Sourcepub fn new(registry: EngineRegistry) -> SystemOneService
pub fn new(registry: EngineRegistry) -> SystemOneService
Construct a new SystemOneService backed by the specified engine registry and default auth.
Sourcepub fn with_auth(registry: EngineRegistry, auth: AuthConfig) -> SystemOneService
pub fn with_auth(registry: EngineRegistry, auth: AuthConfig) -> SystemOneService
Construct a new SystemOneService backed by the specified engine registry and auth configuration.
Trait Implementations§
Source§impl SystemOne for SystemOneService
impl SystemOne for SystemOneService
Source§fn evaluate<'life0, 'async_trait>(
&'life0 self,
request: Request<SystemOneRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SystemOneResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
SystemOneService: 'async_trait,
fn evaluate<'life0, 'async_trait>(
&'life0 self,
request: Request<SystemOneRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SystemOneResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
SystemOneService: 'async_trait,
Evaluates a decision-making / System 1 request against a registered model backend. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SystemOneService
impl !UnwindSafe for SystemOneService
impl Freeze for SystemOneService
impl Send for SystemOneService
impl Sync for SystemOneService
impl Unpin for SystemOneService
impl UnsafeUnpin for SystemOneService
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request