pub struct ProfileMetadata {
pub family: BrowserFamily,
pub browser_version: String,
pub platform: PlatformClass,
pub h2_support: bool,
pub h3_support: bool,
pub added_date: String,
pub source_notes: String,
}Expand description
Metadata describing the provenance of a TlsProfilePack.
§Example
use stygian_browser::tls::PACK_CHROME_131;
let meta = &PACK_CHROME_131.metadata;
assert_eq!(meta.browser_version, "131");
assert!(meta.h2_support);Fields§
§family: BrowserFamilyBrowser family (Chrome, Firefox, Safari, Edge).
browser_version: StringMajor browser version string (e.g. "131").
platform: PlatformClassPrimary platform class this profile was captured on.
h2_support: boolWhether the profile advertises HTTP/2 via ALPN.
h3_support: boolWhether the profile advertises HTTP/3 / QUIC perk data.
added_date: StringISO 8601 date this profile was added to the pack (e.g. "2024-12-01").
source_notes: StringSource notes describing where the profile data came from.
Implementations§
Source§impl ProfileMetadata
impl ProfileMetadata
Sourcepub fn provenance(&self) -> String
pub fn provenance(&self) -> String
Return a short provenance string suitable for diagnostics and logging.
§Example
use stygian_browser::tls::PACK_CHROME_131;
let desc = PACK_CHROME_131.metadata.provenance();
assert!(desc.contains("Chrome"));
assert!(desc.contains("131"));Trait Implementations§
Source§impl Clone for ProfileMetadata
impl Clone for ProfileMetadata
Source§fn clone(&self) -> ProfileMetadata
fn clone(&self) -> ProfileMetadata
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 ProfileMetadata
impl Debug for ProfileMetadata
Source§impl<'de> Deserialize<'de> for ProfileMetadata
impl<'de> Deserialize<'de> for ProfileMetadata
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
Source§impl PartialEq for ProfileMetadata
impl PartialEq for ProfileMetadata
Source§impl Serialize for ProfileMetadata
impl Serialize for ProfileMetadata
impl Eq for ProfileMetadata
impl StructuralPartialEq for ProfileMetadata
Auto Trait Implementations§
impl Freeze for ProfileMetadata
impl RefUnwindSafe for ProfileMetadata
impl Send for ProfileMetadata
impl Sync for ProfileMetadata
impl Unpin for ProfileMetadata
impl UnsafeUnpin for ProfileMetadata
impl UnwindSafe for ProfileMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.