pub struct StationAuthorization {
pub realm_id: [u8; 32],
pub station_node: [u8; 32],
pub hostname: String,
pub roles: Vec<String>,
pub valid_from: u64,
pub valid_until: u64,
pub attestation_key_id: Option<[u8; 32]>,
pub attestation_required: bool,
}Expand description
A station authorization’s payload: the realm and station, the hostname and
roles, its window, and the attestation key a station must prove when
attestation_required.
Fields§
§realm_id: [u8; 32]§station_node: [u8; 32]§hostname: String§roles: Vec<String>§valid_from: u64§valid_until: u64§attestation_key_id: Option<[u8; 32]>§attestation_required: boolTrait Implementations§
Source§impl Clone for StationAuthorization
impl Clone for StationAuthorization
Source§impl Debug for StationAuthorization
impl Debug for StationAuthorization
Source§impl Default for StationAuthorization
impl Default for StationAuthorization
impl Eq for StationAuthorization
Source§impl PartialEq for StationAuthorization
impl PartialEq for StationAuthorization
impl StructuralPartialEq for StationAuthorization
Auto Trait Implementations§
impl Freeze for StationAuthorization
impl RefUnwindSafe for StationAuthorization
impl Send for StationAuthorization
impl Sync for StationAuthorization
impl Unpin for StationAuthorization
impl UnsafeUnpin for StationAuthorization
impl UnwindSafe for StationAuthorization
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