Skip to main content

UrlArgExtractor

Trait UrlArgExtractor 

Source
pub trait UrlArgExtractor<Context, Arg>: IsProviderFor<UrlArgExtractorComponent, Context, Arg>
where Context: HasUrlType + HasErrorType,
{ // Required method fn extract_url_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Result<Context::Url, Context::Error>; }

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Context, Arg, __Components__, __Delegate__> UrlArgExtractor<Context, Arg> for UseDelegate<__Components__>
where Context: HasUrlType + HasErrorType, __Components__: DelegateComponent<Arg, Delegate = __Delegate__>, __Delegate__: UrlArgExtractor<Context, Arg>,

Source§

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

Source§

impl<Context, Arg> UrlArgExtractor<Context, Arg> for UseContext
where Context: HasUrlType + HasErrorType + CanExtractUrlArg<Arg>,

Source§

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

Implementors§

Source§

impl<Component, Context, Arg> UrlArgExtractor<Context, Arg> for Component
where Context: HasUrlType + HasErrorType, Component: DelegateComponent<UrlArgExtractorComponent> + IsProviderFor<UrlArgExtractorComponent, Context, Arg>, Component::Delegate: UrlArgExtractor<Context, Arg>,

Source§

impl<Context, Arg> UrlArgExtractor<Context, Arg> for ExtractStringUrlArg
where Context: HasUrlType + CanExtractStringArg<Arg> + CanRaiseError<<Context::Url as FromStr>::Err>, Context::Url: FromStr,

Source§

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