pub struct WebfingerQuery { /* private fields */ }Expand description
A wrapper type for a Webfinger Resource
This type is used to deserialize from queries like the following:
- resource=acct:asonix@asonix.dog
This can be used in Actix Web with the following code:
ⓘ
use actix_web::Query;
use actix_webfinger::{WebfingerQuery, WebfingerResource};
fn my_route(query: Query<WebfingerQuery>) -> String {
    let WebfingerResource {
        account,
        domain,
    } = query.into_inner().resource;
    // do things
    String::from("got resource")
}Trait Implementations§
Source§impl Clone for WebfingerQuery
 
impl Clone for WebfingerQuery
Source§fn clone(&self) -> WebfingerQuery
 
fn clone(&self) -> WebfingerQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for WebfingerQuery
 
impl Debug for WebfingerQuery
Source§impl<'de> Deserialize<'de> for WebfingerQuery
 
impl<'de> Deserialize<'de> for WebfingerQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebfingerQuery
impl RefUnwindSafe for WebfingerQuery
impl Send for WebfingerQuery
impl Sync for WebfingerQuery
impl Unpin for WebfingerQuery
impl UnwindSafe for WebfingerQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more