Struct rwarden::Urls [−][src]
Expand description
Struct for specifying the URLs of API endpoints.
Fields
base: Url
auth: Url
Implementations
Creates a new Urls
type with the URLs of a custom server.
Field | URL |
---|---|
base | <url>/api |
auth | <url>/identity/connect/token |
Example
let urls = Urls::custom("https://example.com")?;
assert_eq!(urls.base, Url::parse("https://example.com/api").unwrap());
assert_eq!(urls.auth, Url::parse("https://example.com/identity/connect/token").unwrap());
Trait Implementations
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 Urls
impl UnwindSafe for Urls
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self