pub struct WebfingerResource {
pub scheme: Option<String>,
pub account: String,
pub domain: String,
}Expand description
A type representing a valid resource query
Resource queries should have a valid username@instance format.
The following resource formats will not produce errors
acct:asonix@asonix.dogacct:@asonix@asonix.dogasonix@asonix.dog@asonix@asonix.dog
The following resource formats will produce errors
@asonixasonix
This type implements FromStr and serde::de::Deserialize so it can be used to enforce valid
formatting before the request reaches the route handler.
Fields§
§scheme: Option<String>§account: String§domain: StringTrait Implementations§
Source§impl Clone for WebfingerResource
impl Clone for WebfingerResource
Source§fn clone(&self) -> WebfingerResource
fn clone(&self) -> WebfingerResource
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 WebfingerResource
impl Debug for WebfingerResource
Source§impl<'de> Deserialize<'de> for WebfingerResource
impl<'de> Deserialize<'de> for WebfingerResource
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 WebfingerResource
impl RefUnwindSafe for WebfingerResource
impl Send for WebfingerResource
impl Sync for WebfingerResource
impl Unpin for WebfingerResource
impl UnwindSafe for WebfingerResource
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