Struct FieldArg

Source
pub struct FieldArg<Tag>(pub PhantomData<Tag>);

Tuple Fields§

§0: PhantomData<Tag>

Trait Implementations§

Source§

impl<Tag> DelegateComponent<FieldArg<Tag>> for Components

Source§

impl<Tag> DelegateComponent<FieldArg<Tag>> for Components

Source§

impl<Context, Tag> MethodArgExtractor<Context, FieldArg<Tag>> for ExtractMethodFieldArg
where Context: HasHttpMethodType + HasField<Tag, Value = Context::HttpMethod>, Context::HttpMethod: Clone,

Source§

fn extract_method_arg( context: &Context, _phantom: PhantomData<FieldArg<Tag>>, ) -> Context::HttpMethod

Source§

impl<Context, Tag> StringArgExtractor<Context, FieldArg<Tag>> for ExtractFieldArg
where Context: HasField<Tag, Value: Display>,

Source§

fn extract_string_arg( context: &Context, _phantom: PhantomData<FieldArg<Tag>>, ) -> Cow<'_, str>

Source§

impl<Context, Tag> UrlArgExtractor<Context, FieldArg<Tag>> for ExtractUrlFieldArg
where Context: HasUrlType + HasErrorType + HasField<Tag, Value = Context::Url>, Context::Url: Clone,

Source§

fn extract_url_arg( context: &Context, _phantom: PhantomData<FieldArg<Tag>>, ) -> Result<Context::Url, Context::Error>

Source§

impl<Tag, __Context__, __Params__> IsProviderFor<FieldArg<Tag>, __Context__, __Params__> for Components
where ExtractFieldArg: IsProviderFor<FieldArg<Tag>, __Context__, __Params__>,

Source§

impl<Tag, __Context__, __Params__> IsProviderFor<FieldArg<Tag>, __Context__, __Params__> for Components
where ExtractMethodFieldArg: IsProviderFor<FieldArg<Tag>, __Context__, __Params__>,

Source§

impl<Context, Tag> IsProviderFor<MethodArgExtractorComponent, Context, FieldArg<Tag>> for ExtractMethodFieldArg
where Context: HasHttpMethodType + HasField<Tag, Value = Context::HttpMethod>, Context::HttpMethod: Clone,

Source§

impl<Context, Tag> IsProviderFor<StringArgExtractorComponent, Context, FieldArg<Tag>> for ExtractFieldArg
where Context: HasField<Tag, Value: Display>,

Source§

impl<Context, Tag> IsProviderFor<UrlArgExtractorComponent, Context, FieldArg<Tag>> for ExtractUrlFieldArg
where Context: HasUrlType + HasErrorType + HasField<Tag, Value = Context::Url>, Context::Url: Clone,

Auto Trait Implementations§

§

impl<Tag> Freeze for FieldArg<Tag>

§

impl<Tag> RefUnwindSafe for FieldArg<Tag>
where Tag: RefUnwindSafe,

§

impl<Tag> Send for FieldArg<Tag>
where Tag: Send,

§

impl<Tag> Sync for FieldArg<Tag>
where Tag: Sync,

§

impl<Tag> Unpin for FieldArg<Tag>
where Tag: Unpin,

§

impl<Tag> UnwindSafe for FieldArg<Tag>
where Tag: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<A> Async for A
where A: Send + Sync,