Struct google_api_proto::google::devtools::testing::v1::RoboDirective
source · pub struct RoboDirective {
pub resource_name: String,
pub input_text: String,
pub action_type: i32,
}
Expand description
Directs Robo to interact with a specific UI element if it is encountered during the crawl. Currently, Robo can perform text entry or element click.
Fields§
§resource_name: String
Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the “foo” part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
input_text: String
The text that Robo is directed to set. If left empty, the directive will be treated as a CLICK on the element matching the resource_name.
action_type: i32
Required. The type of action that Robo should perform on the specified element.
Implementations§
source§impl RoboDirective
impl RoboDirective
sourcepub fn action_type(&self) -> RoboActionType
pub fn action_type(&self) -> RoboActionType
Returns the enum value of action_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_action_type(&mut self, value: RoboActionType)
pub fn set_action_type(&mut self, value: RoboActionType)
Sets action_type
to the provided enum value.
Trait Implementations§
source§impl Clone for RoboDirective
impl Clone for RoboDirective
source§fn clone(&self) -> RoboDirective
fn clone(&self) -> RoboDirective
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 Debug for RoboDirective
impl Debug for RoboDirective
source§impl Default for RoboDirective
impl Default for RoboDirective
source§impl Message for RoboDirective
impl Message for RoboDirective
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for RoboDirective
impl PartialEq for RoboDirective
source§fn eq(&self, other: &RoboDirective) -> bool
fn eq(&self, other: &RoboDirective) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RoboDirective
Auto Trait Implementations§
impl Freeze for RoboDirective
impl RefUnwindSafe for RoboDirective
impl Send for RoboDirective
impl Sync for RoboDirective
impl Unpin for RoboDirective
impl UnwindSafe for RoboDirective
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
§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>
Wrap the input message
T
in a tonic::Request