pub struct Agent {
pub user_agent: String,
}Expand description
What a caller said about themselves in the headers they sent.
Fields§
§user_agent: StringWhat the caller says they are.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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
impl NamedValuesAlg for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Source§impl<This> LifecycleApiExt<This> for This
impl<This> LifecycleApiExt<This> for This
Source§fn lifecycle_api<Alg>(&self) -> LifecycleApiProgram<Alg>
fn lifecycle_api<Alg>(&self) -> LifecycleApiProgram<Alg>
Declares one endpoint answering at once and one taking longer than any drain.
Source§impl<This> MultipartApiExt<This> for This
impl<This> MultipartApiExt<This> for This
Source§fn multipart_api<Alg>(&self) -> MultipartApiProgram<Alg>where
Alg: UploadAlg,
fn multipart_api<Alg>(&self) -> MultipartApiProgram<Alg>where
Alg: UploadAlg,
Declares one endpoint reading a body that arrives as parts.
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.
Source§impl<This> ShopApiExt<This> for This
impl<This> ShopApiExt<This> for This
Source§impl<This> StreamApiExt<This> for This
impl<This> StreamApiExt<This> for This
Source§fn stream_api<Alg>(&self) -> StreamApiProgram<Alg>where
Alg: TicksAlg,
fn stream_api<Alg>(&self) -> StreamApiProgram<Alg>where
Alg: TicksAlg,
Declares one endpoint answering with a body produced over time.