pub struct WebChatProvider { /* private fields */ }Expand description
WebChat provider wiring with secrets backend integration.
Implementations§
Source§impl WebChatProvider
impl WebChatProvider
pub fn new( config: Config, secrets: Arc<dyn SecretsBackend + Send + Sync + 'static>, ) -> Self
pub fn with_signing_scope(self, scope: Scope) -> Self
pub fn with_platform_init(self, init: PlatformInit) -> Self
pub fn signing_scope(&self) -> Option<&Scope>
pub fn secrets(&self) -> Arc<dyn SecretsBackend + Send + Sync + 'static>
pub fn config(&self) -> &Config
pub async fn signing_keys(&self) -> Result<SigningKeys>
pub async fn direct_line_secret( &self, ctx: &TenantCtx, ) -> Result<Option<String>>
pub async fn oauth_config( &self, ctx: &TenantCtx, ) -> Result<Option<OAuthProviderConfig>>
pub async fn oauth_client_secret( &self, ctx: &TenantCtx, ) -> Result<Option<String>>
Trait Implementations§
Source§impl Clone for WebChatProvider
impl Clone for WebChatProvider
Source§fn clone(&self) -> WebChatProvider
fn clone(&self) -> WebChatProvider
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 moreSource§impl PlatformProvider for WebChatProvider
impl PlatformProvider for WebChatProvider
fn platform_id(&self) -> &'static str
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_card<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 TenantCtx,
_to: &'life2 str,
_card: &'life3 Card,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn verify_webhook<'life0, 'life1, 'async_trait>(
&'life0 self,
_raw: &'life1 RawRequest,
) -> Pin<Box<dyn Future<Output = Result<VerifiedEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_text<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 TenantCtx,
to: &'life2 str,
text: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn raw_call<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_ctx: &'life1 TenantCtx,
_method: &'life2 str,
_path: &'life3 str,
_body: Option<&'life4 [u8]>,
) -> Pin<Box<dyn Future<Output = Result<RawResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl Freeze for WebChatProvider
impl !RefUnwindSafe for WebChatProvider
impl Send for WebChatProvider
impl Sync for WebChatProvider
impl Unpin for WebChatProvider
impl !UnwindSafe for WebChatProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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 moreSource§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