pub struct DeviceProviderAccessRequest {
pub offer: Box<DeviceJoinOffer>,
pub peer_provider: ProviderDeviceBinding,
pub signature: String,
}Fields§
§offer: Box<DeviceJoinOffer>§peer_provider: ProviderDeviceBinding§signature: StringImplementations§
Source§impl DeviceProviderAccessRequest
impl DeviceProviderAccessRequest
pub fn signed( offer: DeviceJoinOffer, peer_provider: ProviderDeviceBinding, member_signer: &UserKeypair, ) -> Result<Self, DeviceJoinError>
pub fn verify( &self, owner: &StoreDeviceRegistration, ) -> Result<(), DeviceJoinError>
pub fn request_hash(&self) -> ObjectHash
Trait Implementations§
Source§impl Clone for DeviceProviderAccessRequest
impl Clone for DeviceProviderAccessRequest
Source§fn clone(&self) -> DeviceProviderAccessRequest
fn clone(&self) -> DeviceProviderAccessRequest
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 DeviceProviderAccessRequest
impl Debug for DeviceProviderAccessRequest
Source§impl<'de> Deserialize<'de> for DeviceProviderAccessRequest
impl<'de> Deserialize<'de> for DeviceProviderAccessRequest
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 DeviceProviderAccessRequest
impl StructuralPartialEq for DeviceProviderAccessRequest
Auto Trait Implementations§
impl Freeze for DeviceProviderAccessRequest
impl RefUnwindSafe for DeviceProviderAccessRequest
impl Send for DeviceProviderAccessRequest
impl Sync for DeviceProviderAccessRequest
impl Unpin for DeviceProviderAccessRequest
impl UnsafeUnpin for DeviceProviderAccessRequest
impl UnwindSafe for DeviceProviderAccessRequest
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.