Struct google_api_proto::google::cloud::paymentgateway::issuerswitch::v1::Rule
source · pub struct Rule {
pub name: String,
pub rule_description: String,
pub api_type: i32,
pub transaction_type: i32,
}
Expand description
A rule that is executed by the issuer switch while processing an API transaction.
Fields§
§name: String
The unique identifier for this resource. Format: projects/{project}/rules/{rule}
rule_description: String
The description of the rule.
api_type: i32
The API Type for which this rule gets executed. A value of
API_TYPE_UNSPECIFIED
indicates that the rule is executed for all API
transactions.
transaction_type: i32
The transaction type for which this rule gets executed. A value of
TRANSACTION_TYPE_UNSPECIFIED
indicates that the rule is executed for
all transaction types.
Implementations§
source§impl Rule
impl Rule
sourcepub fn api_type(&self) -> ApiType
pub fn api_type(&self) -> ApiType
Returns the enum value of api_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_api_type(&mut self, value: ApiType)
pub fn set_api_type(&mut self, value: ApiType)
Sets api_type
to the provided enum value.
sourcepub fn transaction_type(&self) -> TransactionType
pub fn transaction_type(&self) -> TransactionType
Returns the enum value of transaction_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_transaction_type(&mut self, value: TransactionType)
pub fn set_transaction_type(&mut self, value: TransactionType)
Sets transaction_type
to the provided enum value.
Trait Implementations§
source§impl Message for Rule
impl Message for Rule
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
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request