pub struct Tunnel {
pub id: String,
pub public_url: String,
pub started_at: String,
pub metadata: String,
pub proto: String,
pub region: String,
pub tunnel_session: Ref,
pub endpoint: Option<Ref>,
pub labels: HashMap<String, String>,
pub backends: Option<Vec<Ref>>,
pub forwards_to: String,
}
Fields
id: String
unique tunnel resource identifier
public_url: String
URL of the ephemeral tunnel’s public endpoint
started_at: String
timestamp when the tunnel was initiated in RFC 3339 format
metadata: String
user-supplied metadata for the tunnel defined in the ngrok configuration file. See the tunnel metadata configuration option In API version 0, this value was instead pulled from the top-level metadata configuration option.
proto: String
tunnel protocol for ephemeral tunnels. one of http
, https
, tcp
or tls
region: String
identifier of tune region where the tunnel is running
tunnel_session: Ref
reference object pointing to the tunnel session on which this tunnel was started
endpoint: Option<Ref>
the ephemeral endpoint this tunnel is associated with, if this is an agent-initiated tunnel
labels: HashMap<String, String>
the labels the tunnel group backends will match against, if this is a backend tunnel
backends: Option<Vec<Ref>>
tunnel group backends served by this backend tunnel
forwards_to: String
upstream address the ngrok agent forwards traffic over this tunnel to. this may be expressed as a URL or a network address.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Tunnel
impl<'de> Deserialize<'de> for Tunnel
sourcefn 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 RefUnwindSafe for Tunnel
impl Send for Tunnel
impl Sync for Tunnel
impl Unpin for Tunnel
impl UnwindSafe for Tunnel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more