pub struct InvalidResource(/* private fields */);Expand description
The error created if the webfinger resource query is malformed
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 error type captures the invalid string for inspection
Trait Implementations§
Source§impl Clone for InvalidResource
impl Clone for InvalidResource
Source§fn clone(&self) -> InvalidResource
fn clone(&self) -> InvalidResource
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 InvalidResource
impl Debug for InvalidResource
Source§impl Display for InvalidResource
impl Display for InvalidResource
Source§impl Error for InvalidResource
impl Error for InvalidResource
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for InvalidResource
impl RefUnwindSafe for InvalidResource
impl Send for InvalidResource
impl Sync for InvalidResource
impl Unpin for InvalidResource
impl UnwindSafe for InvalidResource
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