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§
Source§impl Clone for TunnelSession
impl Clone for TunnelSession
Source§fn clone(&self) -> TunnelSession
fn clone(&self) -> TunnelSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TunnelSession
impl Debug for TunnelSession
Source§impl Default for TunnelSession
impl Default for TunnelSession
Source§fn default() -> TunnelSession
fn default() -> TunnelSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TunnelSession
impl<'de> Deserialize<'de> for TunnelSession
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 TunnelSession
impl RefUnwindSafe for TunnelSession
impl Send for TunnelSession
impl Sync for TunnelSession
impl Unpin for TunnelSession
impl UnwindSafe for TunnelSession
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