pub struct TocResponse {Show 21 fields
pub corpus: Vec<CorpusMetadata>,
pub tos_version_deprecated: Option<i32>,
pub tos_content: Option<String>,
pub home_url: Option<String>,
pub experiments: Option<Experiments>,
pub tos_checkbox_text_marketing_emails: Option<String>,
pub tos_token: Option<String>,
pub user_settings: Option<UserSettings>,
pub icon_override_url: Option<String>,
pub self_update_config: Option<SelfUpdateConfig>,
pub requires_upload_device_config: Option<bool>,
pub billing_config: Option<BillingConfig>,
pub recs_widget_url: Option<String>,
pub social_home_url: Option<String>,
pub age_verification_required: Option<bool>,
pub g_plus_signup_enabled: Option<bool>,
pub redeem_enabled: Option<bool>,
pub help_url: Option<String>,
pub theme_id: Option<i32>,
pub entertainment_home_url: Option<String>,
pub cookie: Option<String>,
}Fields§
§corpus: Vec<CorpusMetadata>§tos_version_deprecated: Option<i32>§tos_content: Option<String>§home_url: Option<String>§experiments: Option<Experiments>§tos_checkbox_text_marketing_emails: Option<String>§tos_token: Option<String>§user_settings: Option<UserSettings>§icon_override_url: Option<String>§self_update_config: Option<SelfUpdateConfig>§requires_upload_device_config: Option<bool>§billing_config: Option<BillingConfig>§recs_widget_url: Option<String>§age_verification_required: Option<bool>§g_plus_signup_enabled: Option<bool>§redeem_enabled: Option<bool>§help_url: Option<String>§theme_id: Option<i32>§entertainment_home_url: Option<String>Implementations§
Source§impl TocResponse
impl TocResponse
Sourcepub fn tos_version_deprecated(&self) -> i32
pub fn tos_version_deprecated(&self) -> i32
Returns the value of tos_version_deprecated, or the default value if tos_version_deprecated is unset.
Sourcepub fn tos_content(&self) -> &str
pub fn tos_content(&self) -> &str
Returns the value of tos_content, or the default value if tos_content is unset.
Sourcepub fn home_url(&self) -> &str
pub fn home_url(&self) -> &str
Returns the value of home_url, or the default value if home_url is unset.
Sourcepub fn tos_checkbox_text_marketing_emails(&self) -> &str
pub fn tos_checkbox_text_marketing_emails(&self) -> &str
Returns the value of tos_checkbox_text_marketing_emails, or the default value if tos_checkbox_text_marketing_emails is unset.
Sourcepub fn tos_token(&self) -> &str
pub fn tos_token(&self) -> &str
Returns the value of tos_token, or the default value if tos_token is unset.
Sourcepub fn icon_override_url(&self) -> &str
pub fn icon_override_url(&self) -> &str
Returns the value of icon_override_url, or the default value if icon_override_url is unset.
Sourcepub fn requires_upload_device_config(&self) -> bool
pub fn requires_upload_device_config(&self) -> bool
Returns the value of requires_upload_device_config, or the default value if requires_upload_device_config is unset.
Sourcepub fn recs_widget_url(&self) -> &str
pub fn recs_widget_url(&self) -> &str
Returns the value of recs_widget_url, or the default value if recs_widget_url is unset.
Returns the value of social_home_url, or the default value if social_home_url is unset.
Sourcepub fn age_verification_required(&self) -> bool
pub fn age_verification_required(&self) -> bool
Returns the value of age_verification_required, or the default value if age_verification_required is unset.
Sourcepub fn g_plus_signup_enabled(&self) -> bool
pub fn g_plus_signup_enabled(&self) -> bool
Returns the value of g_plus_signup_enabled, or the default value if g_plus_signup_enabled is unset.
Sourcepub fn redeem_enabled(&self) -> bool
pub fn redeem_enabled(&self) -> bool
Returns the value of redeem_enabled, or the default value if redeem_enabled is unset.
Sourcepub fn help_url(&self) -> &str
pub fn help_url(&self) -> &str
Returns the value of help_url, or the default value if help_url is unset.
Sourcepub fn theme_id(&self) -> i32
pub fn theme_id(&self) -> i32
Returns the value of theme_id, or the default value if theme_id is unset.
Sourcepub fn entertainment_home_url(&self) -> &str
pub fn entertainment_home_url(&self) -> &str
Returns the value of entertainment_home_url, or the default value if entertainment_home_url is unset.
Returns the value of cookie, or the default value if cookie is unset.
Trait Implementations§
Source§impl Clone for TocResponse
impl Clone for TocResponse
Source§fn clone(&self) -> TocResponse
fn clone(&self) -> TocResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TocResponse
impl Debug for TocResponse
Source§impl Default for TocResponse
impl Default for TocResponse
Source§impl Message for TocResponse
impl Message for TocResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.