Struct googleplay_protobuf::googleplay::Rule
source · [−]pub struct Rule {
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 subrule: Vec<Rule>,
pub response_code: Option<i32>,
pub comment: Option<String>,
pub string_arg_hash: Vec<u64>,
pub const_arg: Vec<i32>,
}
Fields
negate: Option<bool>
operator: Option<i32>
key: Option<i32>
string_arg: Vec<String>
long_arg: Vec<i64>
double_arg: Vec<f64>
subrule: Vec<Rule>
response_code: Option<i32>
comment: Option<String>
string_arg_hash: Vec<u64>
const_arg: Vec<i32>
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Message for Rule
impl Message for Rule
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
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.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
impl StructuralPartialEq for Rule
Auto Trait Implementations
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more