pub struct DeviceSpec {
pub url: String,
pub style: DeviceStyle,
}Expand description
The device-code endpoint as data (auth §7.3). Two facts, because the endpoint’s
URL does not imply the grammar spoken at it: url, and the style naming which
device-code wire the provider actually serves. Severable like every other row
field — delete the block and the row simply has no headless flow.
Fields§
§url: StringRFC 8628: the device-authorization endpoint, POSTed verbatim. Codex: the
AUTH BASE (e.g. https://auth.openai.com), whose /deviceauth/usercode,
/deviceauth/token, /deviceauth/callback and /codex/device the variant
derives — one value, because the vendor derives all four from one base and a
second copy of it here could only drift.
style: DeviceStyleTrait Implementations§
Source§impl Clone for DeviceSpec
impl Clone for DeviceSpec
Source§fn clone(&self) -> DeviceSpec
fn clone(&self) -> DeviceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceSpec
impl Debug for DeviceSpec
Source§impl<'de> Deserialize<'de> for DeviceSpec
impl<'de> Deserialize<'de> for DeviceSpec
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 DeviceSpec
impl PartialEq for DeviceSpec
Source§impl Serialize for DeviceSpec
impl Serialize for DeviceSpec
impl StructuralPartialEq for DeviceSpec
Auto Trait Implementations§
impl Freeze for DeviceSpec
impl RefUnwindSafe for DeviceSpec
impl Send for DeviceSpec
impl Sync for DeviceSpec
impl Unpin for DeviceSpec
impl UnsafeUnpin for DeviceSpec
impl UnwindSafe for DeviceSpec
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