pub struct AllowedOriginsInput<'a> {
pub port: u16,
pub extra_origins: &'a [String],
pub public_url: Option<&'a str>,
pub extra_origins_label: &'a str,
pub public_url_label: &'a str,
}Expand description
Inputs needed to compute the allow-listed Origin header values for an
inbound MCP HTTP server.
Fields§
§port: u16§extra_origins: &'a [String]§public_url: Option<&'a str>§extra_origins_label: &'a strLabel used in diagnostic logs for a rejected entry in extra_origins
— typically the product’s env var name (for example
SOMA_MCP_ALLOWED_ORIGINS). Pass a generic label such as
"extra_origins" if no product-specific name applies.
public_url_label: &'a strLabel used in diagnostic logs when public_url fails to parse —
typically the product’s env var name (for example
SOMA_MCP_PUBLIC_URL). Pass a generic label such as "public_url"
if no product-specific name applies.
Trait Implementations§
Source§impl<'a> Clone for AllowedOriginsInput<'a>
impl<'a> Clone for AllowedOriginsInput<'a>
Source§fn clone(&self) -> AllowedOriginsInput<'a>
fn clone(&self) -> AllowedOriginsInput<'a>
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<'a> Debug for AllowedOriginsInput<'a>
impl<'a> Debug for AllowedOriginsInput<'a>
impl<'a> Copy for AllowedOriginsInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for AllowedOriginsInput<'a>
impl<'a> RefUnwindSafe for AllowedOriginsInput<'a>
impl<'a> Send for AllowedOriginsInput<'a>
impl<'a> Sync for AllowedOriginsInput<'a>
impl<'a> Unpin for AllowedOriginsInput<'a>
impl<'a> UnsafeUnpin for AllowedOriginsInput<'a>
impl<'a> UnwindSafe for AllowedOriginsInput<'a>
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