pub struct OwnRelaySource {
pub base_url: String,
}Expand description
OwnRelay — the BYO ingress: the user already exposes Core (or a reverse
proxy) at a public URL and configures it here. The base comes from the env
RYU_WEBHOOK_INGRESS_URL (preferred) or the value handed at construction
(e.g. a pref). public_url() appends the webhook path.
Fields§
§base_url: StringThe public base URL Core is reachable at (no path). May be empty when
nothing is configured, in which case public_url() errors.
Implementations§
Trait Implementations§
Source§impl Clone for OwnRelaySource
impl Clone for OwnRelaySource
Source§fn clone(&self) -> OwnRelaySource
fn clone(&self) -> OwnRelaySource
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 moreSource§impl Debug for OwnRelaySource
impl Debug for OwnRelaySource
Source§impl WebhookIngress for OwnRelaySource
impl WebhookIngress for OwnRelaySource
Source§fn kind(&self) -> IngressKind
fn kind(&self) -> IngressKind
Which backend this is.
Source§async fn start(&self) -> Result<()>
async fn start(&self) -> Result<()>
Start (or adopt) the backend so webhooks can arrive. May be a no-op (the
OwnRelay case) or error gracefully when the backing infra is absent.
Source§async fn public_url(&self) -> Result<String>
async fn public_url(&self) -> Result<String>
The public URL Composio should POST to (ends in
WEBHOOK_PATH).Auto Trait Implementations§
impl Freeze for OwnRelaySource
impl RefUnwindSafe for OwnRelaySource
impl Send for OwnRelaySource
impl Sync for OwnRelaySource
impl Unpin for OwnRelaySource
impl UnsafeUnpin for OwnRelaySource
impl UnwindSafe for OwnRelaySource
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