pub struct SubscriptionMetadata {Show 14 fields
pub happ: HappMetadata,
pub traffic: Option<SubscriptionTraffic>,
pub profile_title: Option<String>,
pub update_interval_minutes: Option<u32>,
pub support_url: Option<String>,
pub announcement: Option<String>,
pub routing_enabled: bool,
pub hide_settings: bool,
pub content_type: Option<String>,
pub content_disposition: Option<String>,
pub hwid_active: bool,
pub hwid_not_supported: bool,
pub hwid_limit_reached: bool,
pub hwid_max_devices_reached: bool,
/* private fields */
}Expand description
Common response headers emitted by all three subscription formats.
Fields§
§happ: HappMetadataHapp application management headers.
traffic: Option<SubscriptionTraffic>Parsed traffic/expiry header, when present and valid.
profile_title: Option<String>Decoded profile title.
update_interval_minutes: Option<u32>Suggested polling interval in minutes.
support_url: Option<String>Configured support URL.
announcement: Option<String>Decoded announcement.
routing_enabled: boolWhether compatible clients should enable routing.
hide_settings: boolWhether clients should hide editable settings.
content_type: Option<String>Response MIME type.
content_disposition: Option<String>Download/profile filename header.
hwid_active: boolWhether HWID enforcement is enabled for this subscription.
hwid_not_supported: boolWhether the client omitted or sent an unsupported HWID.
hwid_limit_reached: boolWhether all configured HWID slots are currently occupied.
hwid_max_devices_reached: boolWhether this request was rejected because no device slot was available.
Implementations§
Source§impl SubscriptionMetadata
impl SubscriptionMetadata
Sourcepub fn profile_web_page_url(&self) -> Option<&str>
pub fn profile_web_page_url(&self) -> Option<&str>
Returns the profile web-page URL, which normally embeds the secret subscription identifier.
Sourcepub fn routing_rules(&self) -> Option<&str>
pub fn routing_rules(&self) -> Option<&str>
Returns routing rules supplied to compatible subscription clients.
Trait Implementations§
Source§impl Clone for SubscriptionMetadata
impl Clone for SubscriptionMetadata
Source§impl Debug for SubscriptionMetadata
impl Debug for SubscriptionMetadata
Source§impl Default for SubscriptionMetadata
impl Default for SubscriptionMetadata
impl Eq for SubscriptionMetadata
Source§impl PartialEq for SubscriptionMetadata
impl PartialEq for SubscriptionMetadata
impl StructuralPartialEq for SubscriptionMetadata
Auto Trait Implementations§
impl Freeze for SubscriptionMetadata
impl RefUnwindSafe for SubscriptionMetadata
impl Send for SubscriptionMetadata
impl Sync for SubscriptionMetadata
impl Unpin for SubscriptionMetadata
impl UnsafeUnpin for SubscriptionMetadata
impl UnwindSafe for SubscriptionMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more