Struct google_androidmanagement1::ExternalData
source · pub struct ExternalData {
pub url: Option<String>,
pub sha256_hash: Option<String>,
}Expand description
Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.
This type is not used in any activity, and only used as part of another schema.
Fields§
§url: Option<String>The absolute URL to the data, which must use either the http or https scheme. Android Device Policy does not provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.
sha256_hash: Option<String>The base-64 encoded SHA-256 hash of the content hosted at url. If the content does not match this hash, Android Device Policy will not use the data.
Trait Implementations§
source§impl Clone for ExternalData
impl Clone for ExternalData
source§fn clone(&self) -> ExternalData
fn clone(&self) -> ExternalData
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 ExternalData
impl Debug for ExternalData
source§impl Default for ExternalData
impl Default for ExternalData
source§fn default() -> ExternalData
fn default() -> ExternalData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExternalData
impl<'de> Deserialize<'de> for ExternalData
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
source§impl Serialize for ExternalData
impl Serialize for ExternalData
impl Part for ExternalData
Auto Trait Implementations§
impl Freeze for ExternalData
impl RefUnwindSafe for ExternalData
impl Send for ExternalData
impl Sync for ExternalData
impl Unpin for ExternalData
impl UnwindSafe for ExternalData
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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