pub struct Offer {
pub server: PairedServer,
pub request: String,
pub user_name: String,
pub username: Option<String>,
}Expand description
A server the phone signs the TV in to.
Fields§
§server: PairedServerThe server as the phone has it saved: the TV pins it, not verified, as for a pairing’s.
request: StringThe device sign-in made for the TV there (DeviceSignInOffered):
the TV’s AwaitDeviceSignIn redeems it.
user_name: StringWho the TV signs in as, for its screen: the profile’s display name.
username: Option<String>The account’s username there: what tells two accounts with one
display name apart, and a retry from another account. Left out by
a phone before it was added: the TV goes by user_name then.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Offer
impl<'de> Deserialize<'de> for Offer
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 Offer
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Forget for Offer
impl Freeze for Offer
impl Move for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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