pub struct TelemetryDeck {
pub url: String,
pub app_id: String,
pub default_params: HashMap<String, String>,
pub session_id: String,
}
Expand description
The TelemetryDeck api client
Fields§
§url: String
The base url of the service
app_id: String
The App ID for outgoing signals
default_params: HashMap<String, String>
Default parameters to be appended on all outgoing signals
session_id: String
The current session identifier
Implementations§
Source§impl TelemetryDeck
impl TelemetryDeck
Sourcepub fn new_with_params(app_id: &str, params: HashMap<String, String>) -> Self
pub fn new_with_params(app_id: &str, params: HashMap<String, String>) -> Self
Create a new instance with the specified application id and default parameters
Sourcepub fn reset_session(&mut self, new_session_id: Option<String>)
pub fn reset_session(&mut self, new_session_id: Option<String>)
Reset the session id for future signals
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TelemetryDeck
impl RefUnwindSafe for TelemetryDeck
impl Send for TelemetryDeck
impl Sync for TelemetryDeck
impl Unpin for TelemetryDeck
impl UnwindSafe for TelemetryDeck
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