pub struct RelayCredentials {
pub username: String,
pub password: String,
pub expires_at: u64,
}Expand description
Authentication credentials for relay access
Fields§
§username: StringUsername for authentication
password: StringPassword for authentication
expires_at: u64Expiration time (Unix timestamp)
Trait Implementations§
Source§impl Clone for RelayCredentials
impl Clone for RelayCredentials
Source§fn clone(&self) -> RelayCredentials
fn clone(&self) -> RelayCredentials
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 RelayCredentials
impl Debug for RelayCredentials
Source§impl<'de> Deserialize<'de> for RelayCredentials
impl<'de> Deserialize<'de> for RelayCredentials
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 Freeze for RelayCredentials
impl RefUnwindSafe for RelayCredentials
impl Send for RelayCredentials
impl Sync for RelayCredentials
impl Unpin for RelayCredentials
impl UnwindSafe for RelayCredentials
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