pub struct Payload {
Show 47 fields pub list_response: Option<ListResponse>, pub details_response: Option<DetailsResponse>, pub review_response: Option<ReviewResponse>, pub buy_response: Option<BuyResponse>, pub search_response: Option<SearchResponse>, pub toc_response: Option<TocResponse>, pub browse_response: Option<BrowseResponse>, pub purchase_status_response: Option<PurchaseStatusResponse>, pub log_response: Option<String>, pub flag_content_response: Option<String>, pub bulk_details_response: Option<BulkDetailsResponse>, pub delivery_response: Option<DeliveryResponse>, pub accept_tos_response: Option<AcceptTosResponse>, pub check_promo_offer_response: Option<CheckPromoOfferResponse>, pub instrument_setup_info_response: Option<InstrumentSetupInfoResponse>, pub android_checkin_response: Option<AndroidCheckinResponse>, pub upload_device_config_response: Option<UploadDeviceConfigResponse>, pub search_suggest_response: Option<SearchSuggestResponse>, pub consume_purchase_response: Option<ConsumePurchaseResponse>, pub billing_profile_response: Option<BillingProfileResponse>, pub debug_settings_response: Option<DebugSettingsResponse>, pub check_iab_promo_response: Option<CheckIabPromoResponse>, pub user_activity_settings_response: Option<UserActivitySettingsResponse>, pub record_user_activity_response: Option<RecordUserActivityResponse>, pub redeem_code_response: Option<RedeemCodeResponse>, pub self_update_response: Option<SelfUpdateResponse>, pub get_initial_instrument_flow_state_response: Option<GetInitialInstrumentFlowStateResponse>, pub create_instrument_response: Option<CreateInstrumentResponse>, pub challenge_response: Option<ChallengeResponse>, pub backup_device_choices_response: Option<BackDeviceChoicesResponse>, pub backup_document_choices_response: Option<BackupDocumentChoicesResponse>, pub early_update_response: Option<EarlyUpdateResponse>, pub preloads_response: Option<PreloadsResponse>, pub my_accounts_response: Option<MyAccountsResponse>, pub content_filter_response: Option<ContentFilterResponse>, pub experiments_response: Option<ExperimentsResponse>, pub survey_response: Option<SurveyResponse>, pub ping_response: Option<PingResponse>, pub update_user_setting_response: Option<UpdateUserSettingResponse>, pub get_user_settings_response: Option<GetUserSettingsResponse>, pub get_sharing_settings_response: Option<GetSharingSettingsResponse>, pub update_sharing_settings_response: Option<UpdateSharingSettingsResponse>, pub review_snippets_response: Option<ReviewSnippetsResponse>, pub document_sharing_state_response: Option<DocumentSharingStateResponse>, pub module_delivery_response: Option<ModuleDeliveryResponse>, pub testing_program_response: Option<TestingProgramResponse>, pub review_summary_response: Option<ReviewResponse>,
}

Fields§

§list_response: Option<ListResponse>§details_response: Option<DetailsResponse>§review_response: Option<ReviewResponse>§buy_response: Option<BuyResponse>§search_response: Option<SearchResponse>§toc_response: Option<TocResponse>§browse_response: Option<BrowseResponse>§purchase_status_response: Option<PurchaseStatusResponse>§log_response: Option<String>§flag_content_response: Option<String>§bulk_details_response: Option<BulkDetailsResponse>§delivery_response: Option<DeliveryResponse>§accept_tos_response: Option<AcceptTosResponse>§check_promo_offer_response: Option<CheckPromoOfferResponse>§instrument_setup_info_response: Option<InstrumentSetupInfoResponse>§android_checkin_response: Option<AndroidCheckinResponse>§upload_device_config_response: Option<UploadDeviceConfigResponse>§search_suggest_response: Option<SearchSuggestResponse>§consume_purchase_response: Option<ConsumePurchaseResponse>§billing_profile_response: Option<BillingProfileResponse>§debug_settings_response: Option<DebugSettingsResponse>§check_iab_promo_response: Option<CheckIabPromoResponse>§user_activity_settings_response: Option<UserActivitySettingsResponse>§record_user_activity_response: Option<RecordUserActivityResponse>§redeem_code_response: Option<RedeemCodeResponse>§self_update_response: Option<SelfUpdateResponse>§get_initial_instrument_flow_state_response: Option<GetInitialInstrumentFlowStateResponse>§create_instrument_response: Option<CreateInstrumentResponse>§challenge_response: Option<ChallengeResponse>§backup_device_choices_response: Option<BackDeviceChoicesResponse>§backup_document_choices_response: Option<BackupDocumentChoicesResponse>§early_update_response: Option<EarlyUpdateResponse>§preloads_response: Option<PreloadsResponse>§my_accounts_response: Option<MyAccountsResponse>§content_filter_response: Option<ContentFilterResponse>§experiments_response: Option<ExperimentsResponse>§survey_response: Option<SurveyResponse>§ping_response: Option<PingResponse>§update_user_setting_response: Option<UpdateUserSettingResponse>§get_user_settings_response: Option<GetUserSettingsResponse>§get_sharing_settings_response: Option<GetSharingSettingsResponse>§update_sharing_settings_response: Option<UpdateSharingSettingsResponse>§review_snippets_response: Option<ReviewSnippetsResponse>§document_sharing_state_response: Option<DocumentSharingStateResponse>§module_delivery_response: Option<ModuleDeliveryResponse>§testing_program_response: Option<TestingProgramResponse>§review_summary_response: Option<ReviewResponse>

Implementations§

source§

impl Payload

source

pub fn log_response(&self) -> &str

Returns the value of log_response, or the default value if log_response is unset.

source

pub fn flag_content_response(&self) -> &str

Returns the value of flag_content_response, or the default value if flag_content_response is unset.

Trait Implementations§

source§

impl Clone for Payload

source§

fn clone(&self) -> Payload

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Payload

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Payload

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for Payload

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Payload

source§

fn eq(&self, other: &Payload) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Payload

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.