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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more