[−][src]Struct kayrx::jrpc::raw::server::Params
Access to the parameters of a request.
Methods
impl<'a> Params<'a>
[src]
pub fn get<'k, T>(self, param: impl Into<ParamKey<'k>>) -> Result<T, ()> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
Returns a parameter of the request by name and decodes it.
Returns an error if the parameter doesn't exist or is of the wrong type.
pub fn get_raw<'k>(
self,
param: impl Into<ParamKey<'k>>
) -> Option<&'a JsonValue>
[src]
self,
param: impl Into<ParamKey<'k>>
) -> Option<&'a JsonValue>
Returns a parameter of the request by name.
Trait Implementations
impl<'a> AsRef<Params> for Params<'a>
[src]
impl<'a> Clone for Params<'a>
[src]
impl<'a> Copy for Params<'a>
[src]
impl<'a> Debug for Params<'a>
[src]
impl<'a> From<Params<'a>> for &'a Params
[src]
impl<'a> IntoIterator for Params<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Params<'a>
impl<'a> Send for Params<'a>
impl<'a> Sync for Params<'a>
impl<'a> Unpin for Params<'a>
impl<'a> UnwindSafe for Params<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,