#[non_exhaustive]pub struct AcceptedDeviceInvite {
pub device: Option<SharedDevice>,
pub sharer: Option<SharePartner>,
pub accepted_by: Option<SharePartner>,
pub unknown: Unknown,
}Expand description
What accepting a share answers with.
Three flat objects rather than the Device and User models
beside them: the description gives each its own small shape here, and a
caller reading device.ipv4 would not find it on a Device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device: Option<SharedDevice>Whose device it is.
accepted_by: Option<SharePartner>Who now has it, which is the credential that made this call.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for AcceptedDeviceInvite
impl Clone for AcceptedDeviceInvite
Source§impl Debug for AcceptedDeviceInvite
impl Debug for AcceptedDeviceInvite
Source§impl Default for AcceptedDeviceInvite
impl Default for AcceptedDeviceInvite
Source§impl<'de> Deserialize<'de> for AcceptedDeviceInvite
impl<'de> Deserialize<'de> for AcceptedDeviceInvite
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
Source§impl PartialEq for AcceptedDeviceInvite
impl PartialEq for AcceptedDeviceInvite
Source§impl Serialize for AcceptedDeviceInvite
impl Serialize for AcceptedDeviceInvite
impl StructuralPartialEq for AcceptedDeviceInvite
Auto Trait Implementations§
impl Freeze for AcceptedDeviceInvite
impl RefUnwindSafe for AcceptedDeviceInvite
impl Send for AcceptedDeviceInvite
impl Sync for AcceptedDeviceInvite
impl Unpin for AcceptedDeviceInvite
impl UnsafeUnpin for AcceptedDeviceInvite
impl UnwindSafe for AcceptedDeviceInvite
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