pub struct TunnelSession {
    pub agent_version: String,
    pub credential: Ref,
    pub id: String,
    pub ip: String,
    pub metadata: String,
    pub os: String,
    pub region: String,
    pub started_at: String,
    pub transport: String,
    pub uri: String,
}

Fields

agent_version: String

version of the ngrok agent that started this ngrok tunnel session

credential: Ref

reference to the tunnel credential or ssh credential used by the ngrok agent to start this tunnel session

id: String

unique tunnel session resource identifier

ip: String

source ip address of the tunnel session

metadata: String

arbitrary user-defined data specified in the metadata property in the ngrok configuration file. See the metadata configuration option

os: String

operating system of the host the ngrok agent is running on

region: String

the ngrok region identifier in which this tunnel session was started

started_at: String

time when the tunnel session first connected to the ngrok servers

transport: String

the transport protocol used to start the tunnel session. Either ngrok/v2 or ssh

uri: String

URI to the API resource of the tunnel session

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