Struct google_api_proto::google::devtools::testing::v1::RegularFile
source · pub struct RegularFile {
pub content: Option<FileReference>,
pub device_path: String,
}
Expand description
A file or directory to install on the device before the test starts.
Fields§
§content: Option<FileReference>
Required. The source file.
device_path: String
Required. Where to put the content on the device. Must be an absolute, allowlisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are allowlisted:
${EXTERNAL_STORAGE}, /sdcard, or /storage
${ANDROID_DATA}/local/tmp, or /data/local/tmp
Specifying a path outside of these directory trees is invalid.
The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device and copy the file there.
It is strongly advised to use the > Environment API in app and test code to access files on the device in a portable way.
Trait Implementations§
source§impl Clone for RegularFile
impl Clone for RegularFile
source§fn clone(&self) -> RegularFile
fn clone(&self) -> RegularFile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegularFile
impl Debug for RegularFile
source§impl Default for RegularFile
impl Default for RegularFile
source§impl Message for RegularFile
impl Message for RegularFile
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 RegularFile
impl PartialEq for RegularFile
source§fn eq(&self, other: &RegularFile) -> bool
fn eq(&self, other: &RegularFile) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegularFile
Auto Trait Implementations§
impl Freeze for RegularFile
impl RefUnwindSafe for RegularFile
impl Send for RegularFile
impl Sync for RegularFile
impl Unpin for RegularFile
impl UnwindSafe for RegularFile
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