Struct google_testing1::RegularFile [−][src]
pub struct RegularFile { pub content: Option<FileReference>, pub device_path: Option<String>, }
A file or directory to install on the device before the test starts
This type is not used in any activity, and only used as part of another schema.
Fields
content: Option<FileReference>
Required
device_path: Option<String>
Where to put the content on the device. Must be an absolute, whitelisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are whitelisted:
${EXTERNAL_STORAGE}, or /sdcard
${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. Required
Trait Implementations
impl Default for RegularFile
[src]
impl Default for RegularFile
fn default() -> RegularFile
[src]
fn default() -> RegularFile
Returns the "default value" for a type. Read more
impl Clone for RegularFile
[src]
impl Clone for RegularFile
fn clone(&self) -> RegularFile
[src]
fn clone(&self) -> RegularFile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for RegularFile
[src]
impl Debug for RegularFile
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for RegularFile
[src]
impl Part for RegularFile
Auto Trait Implementations
impl Send for RegularFile
impl Send for RegularFile
impl Sync for RegularFile
impl Sync for RegularFile