pub enum DeviceRegistrationRequest {
SamePrincipal {
approval: Box<DeviceProviderAdmissionApproval>,
},
CrossPrincipal(CrossPrincipalDeviceRegistrationRequest),
}Expand description
A same-provider registration needs no second signature: the joining device’s access request already signed the complete registration. A cross-provider registration additionally signs the response slot allocated after the administrator publishes its challenge.
Variants§
SamePrincipal
Fields
§
approval: Box<DeviceProviderAdmissionApproval>CrossPrincipal(CrossPrincipalDeviceRegistrationRequest)
Implementations§
Source§impl DeviceRegistrationRequest
impl DeviceRegistrationRequest
pub fn same_principal( approval: DeviceProviderAdmissionApproval, ) -> Result<Self, DeviceJoinExchangeError>
pub fn cross_principal( approval: DeviceProviderAdmissionApproval, response_slot: ObjectSlot, member_signer: &UserKeypair, ) -> Result<Self, DeviceJoinExchangeError>
pub fn verify(&self) -> Result<(), DeviceJoinExchangeError>
pub fn approval(&self) -> &DeviceProviderAdmissionApproval
pub fn expected_registration(&self) -> &StoreDeviceRegistration
pub fn registration_slot(&self) -> &ObjectSlot
pub fn response(&self) -> DeviceProviderResponseReservation
Trait Implementations§
Source§impl Clone for DeviceRegistrationRequest
impl Clone for DeviceRegistrationRequest
Source§fn clone(&self) -> DeviceRegistrationRequest
fn clone(&self) -> DeviceRegistrationRequest
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 DeviceRegistrationRequest
impl Debug for DeviceRegistrationRequest
Source§impl<'de> Deserialize<'de> for DeviceRegistrationRequest
impl<'de> Deserialize<'de> for DeviceRegistrationRequest
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 DeviceRegistrationRequest
impl StructuralPartialEq for DeviceRegistrationRequest
Auto Trait Implementations§
impl !Freeze for DeviceRegistrationRequest
impl RefUnwindSafe for DeviceRegistrationRequest
impl Send for DeviceRegistrationRequest
impl Sync for DeviceRegistrationRequest
impl Unpin for DeviceRegistrationRequest
impl UnsafeUnpin for DeviceRegistrationRequest
impl UnwindSafe for DeviceRegistrationRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.