pub struct RedirectSpec {
pub host: String,
pub port: Option<u16>,
pub path: String,
}Expand description
The loopback redirect endpoint as data (auth §10.1). The default reproduces
today’s literal — 127.0.0.1 (RFC 8252), an ephemeral port (None ⇒ :0), and
/callback — so deleting the block restores it (severability). A provider whose
registered redirect differs (OpenAI: localhost:1455/auth/callback) names it
here as data; the socket still binds the IPv4 loopback 127.0.0.1.
Fields§
§host: String§port: Option<u16>§path: StringTrait Implementations§
Source§impl Clone for RedirectSpec
impl Clone for RedirectSpec
Source§fn clone(&self) -> RedirectSpec
fn clone(&self) -> RedirectSpec
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 RedirectSpec
impl Debug for RedirectSpec
Source§impl Default for RedirectSpec
impl Default for RedirectSpec
Source§impl<'de> Deserialize<'de> for RedirectSpec
impl<'de> Deserialize<'de> for RedirectSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RedirectSpec
impl PartialEq for RedirectSpec
Source§impl Serialize for RedirectSpec
impl Serialize for RedirectSpec
impl StructuralPartialEq for RedirectSpec
Auto Trait Implementations§
impl Freeze for RedirectSpec
impl RefUnwindSafe for RedirectSpec
impl Send for RedirectSpec
impl Sync for RedirectSpec
impl Unpin for RedirectSpec
impl UnsafeUnpin for RedirectSpec
impl UnwindSafe for RedirectSpec
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