pub struct SqrlUrl { /* private fields */ }
Expand description
Parses a SQRL url and breaks it into its parts
Implementations§
Source§impl SqrlUrl
impl SqrlUrl
Sourcepub fn parse(url: &str) -> Result<Self>
pub fn parse(url: &str) -> Result<Self>
Parse a SQRL url string and convert it into the object
use sqrl_protocol::SqrlUrl;
let sqrl_url = SqrlUrl::parse("sqrl://example.com?nut=1234abcd").unwrap();
Sourcepub fn get_auth_domain(&self) -> String
pub fn get_auth_domain(&self) -> String
Get the auth domain used for calculating identities
use sqrl_protocol::SqrlUrl;
let sqrl_url = SqrlUrl::parse("sqrl://example.com/auth/path?nut=1234abcd").unwrap();
assert_eq!("example.com/auth/path", sqrl_url.get_auth_domain())
Trait Implementations§
impl StructuralPartialEq for SqrlUrl
Auto Trait Implementations§
impl Freeze for SqrlUrl
impl RefUnwindSafe for SqrlUrl
impl Send for SqrlUrl
impl Sync for SqrlUrl
impl Unpin for SqrlUrl
impl UnwindSafe for SqrlUrl
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