Struct salvo::prelude::LazyExtract
source · pub struct LazyExtract<T> { /* private fields */ }
Expand description
Wrapper for Extractible type. Handler
’s parameters does not allow two extractible types has lifetime, wrap these types with LazyExtract
.
Implementations§
source§impl<'de, T> LazyExtract<T>where
T: Extractible<'de>,
impl<'de, T> LazyExtract<T>where
T: Extractible<'de>,
sourcepub fn new() -> LazyExtract<T>
pub fn new() -> LazyExtract<T>
Create a new LazyExtract
instance.
Trait Implementations§
source§impl<'de, T> Default for LazyExtract<T>where
T: Extractible<'de>,
impl<'de, T> Default for LazyExtract<T>where
T: Extractible<'de>,
source§fn default() -> LazyExtract<T>
fn default() -> LazyExtract<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for LazyExtract<T>
impl<'de, T> Deserialize<'de> for LazyExtract<T>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LazyExtract<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LazyExtract<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more