pub struct EnrollCode {
pub psk: Psk,
pub sni: String,
pub max_conns: usize,
pub expires_at: Option<u64>,
}Expand description
A single-use PSK that can be redeemed for a new tenant.
Fields§
§psk: Psk§sni: String§max_conns: usize§expires_at: Option<u64>Unix seconds after which the code no longer works.
Trait Implementations§
Source§impl Clone for EnrollCode
impl Clone for EnrollCode
Source§impl Debug for EnrollCode
impl Debug for EnrollCode
Source§impl<'de> Deserialize<'de> for EnrollCode
impl<'de> Deserialize<'de> for EnrollCode
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
impl Eq for EnrollCode
Source§impl PartialEq for EnrollCode
impl PartialEq for EnrollCode
Source§impl Serialize for EnrollCode
impl Serialize for EnrollCode
impl StructuralPartialEq for EnrollCode
Auto Trait Implementations§
impl Freeze for EnrollCode
impl RefUnwindSafe for EnrollCode
impl Send for EnrollCode
impl Sync for EnrollCode
impl Unpin for EnrollCode
impl UnsafeUnpin for EnrollCode
impl UnwindSafe for EnrollCode
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