Struct saphir::RequestAddon [−][src]
pub struct RequestAddon { /* fields omitted */ }
Methods
impl RequestAddon
[src]
impl RequestAddon
pub fn new<T>(name: String, data: T) -> Self where
T: 'static + Any + Send,
[src]
pub fn new<T>(name: String, data: T) -> Self where
T: 'static + Any + Send,
Create a new RequestParam
pub fn is<T: 'static + Any + Send>(&self) -> bool
[src]
pub fn is<T: 'static + Any + Send>(&self) -> bool
Check if data is of type T
pub fn borrow_as<T: 'static + Any + Send>(&self) -> Option<&T>
[src]
pub fn borrow_as<T: 'static + Any + Send>(&self) -> Option<&T>
Retrieve RequestParam as Ref of type T, or none if the conversion failed
pub fn borrow_mut_as<T: 'static + Any + Send>(&mut self) -> Option<&mut T>
[src]
pub fn borrow_mut_as<T: 'static + Any + Send>(&mut self) -> Option<&mut T>
Retrieve RequestParam as RefMut of type T, or none if the conversion failed
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Get the name of the request param
Trait Implementations
impl Debug for RequestAddon
[src]
impl Debug for RequestAddon
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: ToString, T: 'static + Any + Send> From<(S, T)> for RequestAddon
[src]
impl<S: ToString, T: 'static + Any + Send> From<(S, T)> for RequestAddon
Auto Trait Implementations
impl Send for RequestAddon
impl Send for RequestAddon
impl !Sync for RequestAddon
impl !Sync for RequestAddon