pub struct GetAssetResponse {
pub asset: Vec<u8>,
pub content_type: Option<String>,
pub found: bool,
}Fields§
§asset: Vec<u8>Raw asset as bytes.
content_type: Option<String>Optional hint to the caller about the content type of the asset. Should be a valid MIME type.
found: boolTrue if request was successful and asset was found, false if request was successful but asset was not found.
Trait Implementations§
Source§impl Clone for GetAssetResponse
impl Clone for GetAssetResponse
Source§fn clone(&self) -> GetAssetResponse
fn clone(&self) -> GetAssetResponse
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 GetAssetResponse
impl Debug for GetAssetResponse
Source§impl Default for GetAssetResponse
impl Default for GetAssetResponse
Source§fn default() -> GetAssetResponse
fn default() -> GetAssetResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetAssetResponse
impl<'de> Deserialize<'de> for GetAssetResponse
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 PartialEq for GetAssetResponse
impl PartialEq for GetAssetResponse
Source§impl Serialize for GetAssetResponse
impl Serialize for GetAssetResponse
impl Eq for GetAssetResponse
impl StructuralPartialEq for GetAssetResponse
Auto Trait Implementations§
impl Freeze for GetAssetResponse
impl RefUnwindSafe for GetAssetResponse
impl Send for GetAssetResponse
impl Sync for GetAssetResponse
impl Unpin for GetAssetResponse
impl UnwindSafe for GetAssetResponse
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