pub struct AuthorizedAddress {
pub url: Url,
pub bearer_token: Option<String>,
}Expand description
An authorized address combines a URL with an optional bearer token.
Fields§
§url: Url§bearer_token: Option<String>Implementations§
Source§impl AuthorizedAddress
impl AuthorizedAddress
pub fn join(&self, path: &str) -> AuthorizedAddress
pub fn to_websocket_address(self) -> AuthorizedAddress
pub fn bearer_header(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for AuthorizedAddress
impl Clone for AuthorizedAddress
Source§fn clone(&self) -> AuthorizedAddress
fn clone(&self) -> AuthorizedAddress
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 AuthorizedAddress
impl Debug for AuthorizedAddress
Auto Trait Implementations§
impl Freeze for AuthorizedAddress
impl RefUnwindSafe for AuthorizedAddress
impl Send for AuthorizedAddress
impl Sync for AuthorizedAddress
impl Unpin for AuthorizedAddress
impl UnwindSafe for AuthorizedAddress
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