pub struct DeviceConnectUrls {
pub urls: Vec<String>,
pub loopback_only: bool,
}Expand description
Connection URLs for reaching the running web UI from another device.
Returned by the backend device-connect-urls endpoint so the frontend can
present per-interface links (and QR codes) for connecting a phone or other
device on the same network.
Fields§
§urls: Vec<String>One entry per reachable interface address, each a full URL (including the access token as a query parameter, when one is required).
loopback_only: boolTrue when the only reachable address is loopback, in which case another device cannot connect (the server is bound to localhost only).
Trait Implementations§
Source§impl Clone for DeviceConnectUrls
impl Clone for DeviceConnectUrls
Source§fn clone(&self) -> DeviceConnectUrls
fn clone(&self) -> DeviceConnectUrls
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 DeviceConnectUrls
impl Debug for DeviceConnectUrls
Source§impl<'de> Deserialize<'de> for DeviceConnectUrls
impl<'de> Deserialize<'de> for DeviceConnectUrls
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
Auto Trait Implementations§
impl Freeze for DeviceConnectUrls
impl RefUnwindSafe for DeviceConnectUrls
impl Send for DeviceConnectUrls
impl Sync for DeviceConnectUrls
impl Unpin for DeviceConnectUrls
impl UnsafeUnpin for DeviceConnectUrls
impl UnwindSafe for DeviceConnectUrls
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