pub struct AndroidResource {
pub module: PathBuf,
pub source_set: String,
pub area: String,
pub res_type: Option<String>,
pub qualifiers: Vec<String>,
pub density: Option<String>,
pub rtl: bool,
pub api_level: Option<u32>,
pub name: Option<String>,
pub nine_patch: bool,
}Fields§
§module: PathBufModule directory (the parent of src/<set> or of res), project-relative.
source_set: StringGradle source set such as main or debug; empty for a bare res/.
area: Stringres or assets.
res_type: Option<String>Resource type for res files, e.g. drawable, mipmap, raw.
qualifiers: Vec<String>Directory qualifiers in declaration order, e.g. ["ldrtl", "xxhdpi"].
density: Option<String>§rtl: bool§api_level: Option<u32>Platform version qualifier (-v26).
name: Option<String>Resource name: the basename without extension (and without .9).
nine_patch: boolTrait Implementations§
Source§impl Clone for AndroidResource
impl Clone for AndroidResource
Source§fn clone(&self) -> AndroidResource
fn clone(&self) -> AndroidResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AndroidResource
impl Debug for AndroidResource
Source§impl<'de> Deserialize<'de> for AndroidResource
impl<'de> Deserialize<'de> for AndroidResource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AndroidResource
Source§impl PartialEq for AndroidResource
impl PartialEq for AndroidResource
Source§impl Serialize for AndroidResource
impl Serialize for AndroidResource
impl StructuralPartialEq for AndroidResource
Auto Trait Implementations§
impl Freeze for AndroidResource
impl RefUnwindSafe for AndroidResource
impl Send for AndroidResource
impl Sync for AndroidResource
impl Unpin for AndroidResource
impl UnsafeUnpin for AndroidResource
impl UnwindSafe for AndroidResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more