pub struct DynamicBaseUrl {
pub allowed_hosts: Vec<String>,
pub protocol: Option<BaseUrlProtocol>,
pub fallback: Option<String>,
}Expand description
Better Auth 1.7.6 dynamic baseURL policy. Hosts include ports; * and ?
patterns are supported. A fallback is used when the source host is absent
or outside the allowlist, and never makes that source host trusted.
Fields§
§allowed_hosts: Vec<String>§protocol: Option<BaseUrlProtocol>§fallback: Option<String>Trait Implementations§
Source§impl Clone for DynamicBaseUrl
impl Clone for DynamicBaseUrl
Auto Trait Implementations§
impl Freeze for DynamicBaseUrl
impl RefUnwindSafe for DynamicBaseUrl
impl Send for DynamicBaseUrl
impl Sync for DynamicBaseUrl
impl Unpin for DynamicBaseUrl
impl UnsafeUnpin for DynamicBaseUrl
impl UnwindSafe for DynamicBaseUrl
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