pub struct UserAgentDetails {
pub app_name: String,
pub contact_email: String,
pub version: String,
}Expand description
User agent details for nadeo services; format: app_name/version (contact_email)
Fields§
§app_name: String§contact_email: String§version: StringImplementations§
Source§impl UserAgentDetails
impl UserAgentDetails
Sourcepub fn new_autodetect(contact_email: &str) -> Self
pub fn new_autodetect(contact_email: &str) -> Self
Detects app_name and version from cargo manifest
pub fn new_autover(app_name: &str, contact_email: &str) -> Self
pub fn new(app_name: &str, contact_email: &str, version: &str) -> Self
pub fn get_user_agent_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserAgentDetails
impl RefUnwindSafe for UserAgentDetails
impl Send for UserAgentDetails
impl Sync for UserAgentDetails
impl Unpin for UserAgentDetails
impl UnwindSafe for UserAgentDetails
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