Struct steam_vent_proto::steammessages_useraccount_steamclient::cuser_account_get_available_valve_discount_promotions_response::ValveDiscountPromotionDetails
source · pub struct ValveDiscountPromotionDetails {
pub promotionid: Option<u32>,
pub promotion_description: Option<String>,
pub minimum_cart_amount: Option<i64>,
pub minimum_cart_amount_for_display: Option<i64>,
pub discount_amount: Option<i64>,
pub currency_code: Option<i32>,
pub available_use_count: Option<i32>,
pub promotional_discount_type: Option<i32>,
pub loyalty_reward_id: Option<i32>,
pub localized_name_token: Option<String>,
pub max_use_count: Option<i32>,
pub special_fields: SpecialFields,
}
Fields§
§promotionid: Option<u32>
§promotion_description: Option<String>
§minimum_cart_amount: Option<i64>
§minimum_cart_amount_for_display: Option<i64>
§discount_amount: Option<i64>
§currency_code: Option<i32>
§available_use_count: Option<i32>
§promotional_discount_type: Option<i32>
§loyalty_reward_id: Option<i32>
§localized_name_token: Option<String>
§max_use_count: Option<i32>
§special_fields: SpecialFields
Implementations§
source§impl ValveDiscountPromotionDetails
impl ValveDiscountPromotionDetails
pub fn new() -> ValveDiscountPromotionDetails
pub fn promotionid(&self) -> u32
pub fn clear_promotionid(&mut self)
pub fn has_promotionid(&self) -> bool
pub fn set_promotionid(&mut self, v: u32)
pub fn promotion_description(&self) -> &str
pub fn clear_promotion_description(&mut self)
pub fn has_promotion_description(&self) -> bool
pub fn set_promotion_description(&mut self, v: String)
pub fn mut_promotion_description(&mut self) -> &mut String
pub fn take_promotion_description(&mut self) -> String
pub fn minimum_cart_amount(&self) -> i64
pub fn clear_minimum_cart_amount(&mut self)
pub fn has_minimum_cart_amount(&self) -> bool
pub fn set_minimum_cart_amount(&mut self, v: i64)
pub fn minimum_cart_amount_for_display(&self) -> i64
pub fn clear_minimum_cart_amount_for_display(&mut self)
pub fn has_minimum_cart_amount_for_display(&self) -> bool
pub fn set_minimum_cart_amount_for_display(&mut self, v: i64)
pub fn discount_amount(&self) -> i64
pub fn clear_discount_amount(&mut self)
pub fn has_discount_amount(&self) -> bool
pub fn set_discount_amount(&mut self, v: i64)
pub fn currency_code(&self) -> i32
pub fn clear_currency_code(&mut self)
pub fn has_currency_code(&self) -> bool
pub fn set_currency_code(&mut self, v: i32)
pub fn available_use_count(&self) -> i32
pub fn clear_available_use_count(&mut self)
pub fn has_available_use_count(&self) -> bool
pub fn set_available_use_count(&mut self, v: i32)
pub fn promotional_discount_type(&self) -> i32
pub fn clear_promotional_discount_type(&mut self)
pub fn has_promotional_discount_type(&self) -> bool
pub fn set_promotional_discount_type(&mut self, v: i32)
pub fn loyalty_reward_id(&self) -> i32
pub fn clear_loyalty_reward_id(&mut self)
pub fn has_loyalty_reward_id(&self) -> bool
pub fn set_loyalty_reward_id(&mut self, v: i32)
pub fn localized_name_token(&self) -> &str
pub fn clear_localized_name_token(&mut self)
pub fn has_localized_name_token(&self) -> bool
pub fn set_localized_name_token(&mut self, v: String)
pub fn mut_localized_name_token(&mut self) -> &mut String
pub fn take_localized_name_token(&mut self) -> String
pub fn max_use_count(&self) -> i32
pub fn clear_max_use_count(&mut self)
pub fn has_max_use_count(&self) -> bool
pub fn set_max_use_count(&mut self, v: i32)
Trait Implementations§
source§impl Clone for ValveDiscountPromotionDetails
impl Clone for ValveDiscountPromotionDetails
source§fn clone(&self) -> ValveDiscountPromotionDetails
fn clone(&self) -> ValveDiscountPromotionDetails
Returns a copy 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<'a> Default for &'a ValveDiscountPromotionDetails
impl<'a> Default for &'a ValveDiscountPromotionDetails
source§fn default() -> &'a ValveDiscountPromotionDetails
fn default() -> &'a ValveDiscountPromotionDetails
Returns the “default value” for a type. Read more
source§impl Default for ValveDiscountPromotionDetails
impl Default for ValveDiscountPromotionDetails
source§fn default() -> ValveDiscountPromotionDetails
fn default() -> ValveDiscountPromotionDetails
Returns the “default value” for a type. Read more
source§impl Message for ValveDiscountPromotionDetails
impl Message for ValveDiscountPromotionDetails
source§const NAME: &'static str = "ValveDiscountPromotionDetails"
const NAME: &'static str = "ValveDiscountPromotionDetails"
Message name as specified in
.proto
file. Read moresource§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Compute and cache size of this message and all nested messages. Read more
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_> ) -> Result<()>
Write message to the stream. Read more
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Special fields (unknown fields and cached size).
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Special fields (unknown fields and cached size).
source§fn new() -> ValveDiscountPromotionDetails
fn new() -> ValveDiscountPromotionDetails
Create an empty message object. Read more
source§fn default_instance() -> &'static ValveDiscountPromotionDetails
fn default_instance() -> &'static ValveDiscountPromotionDetails
Return a pointer to default immutable message with static lifetime. Read more
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Parse message from stream.
source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
Get size previously computed by
compute_size
. Read moresource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Write the message to the stream. Read more
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
Write the message to the stream prepending the message with message length
encoded as varint.
source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Write the message to the vec, prepend the message with message length
encoded as varint.
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Update this message object with fields read from given stream.
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Parse message from reader.
Parse stops on EOF or when error encountered.
source§fn parse_from_tokio_bytes(bytes: &Bytes) -> Result<Self, Error>
fn parse_from_tokio_bytes(bytes: &Bytes) -> Result<Self, Error>
Parse message from
Bytes
object.
Resulting message may share references to the passed bytes object.source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Check if all required fields of this object are initialized.
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Write the message to the writer.
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write ) -> Result<(), Error>
Write the message to the writer, prepend the message with message length
encoded as varint.
source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§impl PartialEq for ValveDiscountPromotionDetails
impl PartialEq for ValveDiscountPromotionDetails
source§fn eq(&self, other: &ValveDiscountPromotionDetails) -> bool
fn eq(&self, other: &ValveDiscountPromotionDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ValveDiscountPromotionDetails
Auto Trait Implementations§
impl !Freeze for ValveDiscountPromotionDetails
impl RefUnwindSafe for ValveDiscountPromotionDetails
impl Send for ValveDiscountPromotionDetails
impl Sync for ValveDiscountPromotionDetails
impl Unpin for ValveDiscountPromotionDetails
impl UnwindSafe for ValveDiscountPromotionDetails
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