Struct actix_webfinger::WebfingerResource
source · 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.dog
acct:@asonix@asonix.dog
asonix@asonix.dog
@asonix@asonix.dog
The following resource formats will produce errors
@asonix
asonix
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: String
Trait Implementations§
source§impl Clone for WebfingerResource
impl Clone for WebfingerResource
source§fn clone(&self) -> WebfingerResource
fn clone(&self) -> WebfingerResource
Returns a copy 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 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