pub struct QuickTunnel {
pub id: String,
pub name: String,
pub hostname: String,
pub account_tag: String,
pub secret: Vec<u8>,
}Expand description
The bits the QUIC + capnp-RPC dance needs.
secret is delivered as a base64 string in the JSON body; the
serde_bytes_b64 helper decodes it back to raw bytes so callers
can stuff them straight into the capnp TunnelAuth.tunnelSecret
field. Mirror of cloudflared’s QuickTunnel Go struct.
Fields§
§id: String§name: String§hostname: String§account_tag: String§secret: Vec<u8>Trait Implementations§
Source§impl Debug for QuickTunnel
impl Debug for QuickTunnel
Source§impl<'de> Deserialize<'de> for QuickTunnel
impl<'de> Deserialize<'de> for QuickTunnel
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 QuickTunnel
impl RefUnwindSafe for QuickTunnel
impl Send for QuickTunnel
impl Sync for QuickTunnel
impl Unpin for QuickTunnel
impl UnsafeUnpin for QuickTunnel
impl UnwindSafe for QuickTunnel
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