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: Stringversion of the ngrok agent that started this ngrok tunnel session
credential: Refreference to the tunnel credential or ssh credential used by the ngrok agent to start this tunnel session
id: Stringunique tunnel session resource identifier
ip: Stringsource ip address of the tunnel session
metadata: Stringarbitrary user-defined data specified in the metadata property in the ngrok configuration file. See the metadata configuration option
os: Stringoperating system of the host the ngrok agent is running on
region: Stringthe ngrok region identifier in which this tunnel session was started
started_at: Stringtime when the tunnel session first connected to the ngrok servers
transport: Stringthe transport protocol used to start the tunnel session. Either ngrok/v2 or
ssh
uri: StringURI 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