Struct ngrok_api::types::TunnelSession
source · [−]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
sourceimpl Clone for TunnelSession
impl Clone for TunnelSession
sourcefn clone(&self) -> TunnelSession
fn clone(&self) -> TunnelSession
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TunnelSession
impl Debug for TunnelSession
sourceimpl Default for TunnelSession
impl Default for TunnelSession
sourcefn default() -> TunnelSession
fn default() -> TunnelSession
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TunnelSession
impl<'de> Deserialize<'de> for TunnelSession
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
sourceimpl Serialize for TunnelSession
impl Serialize for TunnelSession
Auto Trait Implementations
impl RefUnwindSafe for TunnelSession
impl Send for TunnelSession
impl Sync for TunnelSession
impl Unpin for TunnelSession
impl UnwindSafe for TunnelSession
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