Struct googleplay_protobuf::googleplay::Rule
source · pub struct Rule {Show 13 fields
pub negate: Option<bool>,
pub operator: Option<i32>,
pub key: Option<i32>,
pub string_arg: Vec<String>,
pub long_arg: Vec<i64>,
pub double_arg: Vec<f64>,
pub sub_rule: Vec<Rule>,
pub response_code: Option<i32>,
pub comment: Option<String>,
pub string_arg_hash: Vec<u64>,
pub const_arg: Vec<i32>,
pub availability_problem_type: Option<i32>,
pub include_missing_values: Option<bool>,
}
Fields§
§negate: Option<bool>
§operator: Option<i32>
§key: Option<i32>
§string_arg: Vec<String>
§long_arg: Vec<i64>
§double_arg: Vec<f64>
§sub_rule: Vec<Rule>
§response_code: Option<i32>
§comment: Option<String>
§string_arg_hash: Vec<u64>
§const_arg: Vec<i32>
§availability_problem_type: Option<i32>
§include_missing_values: Option<bool>
Implementations§
source§impl Rule
impl Rule
sourcepub fn negate(&self) -> bool
pub fn negate(&self) -> bool
Returns the value of negate
, or the default value if negate
is unset.
sourcepub fn operator(&self) -> i32
pub fn operator(&self) -> i32
Returns the value of operator
, or the default value if operator
is unset.
sourcepub fn response_code(&self) -> i32
pub fn response_code(&self) -> i32
Returns the value of response_code
, or the default value if response_code
is unset.
sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment
, or the default value if comment
is unset.
sourcepub fn availability_problem_type(&self) -> i32
pub fn availability_problem_type(&self) -> i32
Returns the value of availability_problem_type
, or the default value if availability_problem_type
is unset.
sourcepub fn include_missing_values(&self) -> bool
pub fn include_missing_values(&self) -> bool
Returns the value of include_missing_values
, or the default value if include_missing_values
is unset.
Trait Implementations§
source§impl Message for Rule
impl Message for Rule
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Rule
impl PartialEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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