pub struct ComputerPreviewReadResult {
pub uri: String,
pub request_id: String,
pub mime_type: Option<String>,
pub data: Option<String>,
pub total_bytes: u64,
pub downscaled: bool,
pub expired: bool,
}Expand description
One retained screenshot body, or its expiry.
Fields§
§uri: StringURI that was read.
request_id: StringEchoed request identity.
mime_type: Option<String>MIME type of the retained bytes.
data: Option<String>Base64 PNG body; absent when the bytes expired.
total_bytes: u64Served PNG bytes (post-scaling).
downscaled: boolTrue when the served body was downscaled to fit the frame budget.
expired: boolTrue when the bytes are gone (evicted, cleared, or unknown): the client renders the expired state and never retries.
Trait Implementations§
Source§impl Clone for ComputerPreviewReadResult
impl Clone for ComputerPreviewReadResult
Source§impl Debug for ComputerPreviewReadResult
impl Debug for ComputerPreviewReadResult
Source§impl<'de> Deserialize<'de> for ComputerPreviewReadResult
impl<'de> Deserialize<'de> for ComputerPreviewReadResult
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 ComputerPreviewReadResult
impl StructuralPartialEq for ComputerPreviewReadResult
Auto Trait Implementations§
impl Forget for ComputerPreviewReadResult
impl Freeze for ComputerPreviewReadResult
impl Move for ComputerPreviewReadResult
impl RefUnwindSafe for ComputerPreviewReadResult
impl Send for ComputerPreviewReadResult
impl Sync for ComputerPreviewReadResult
impl Unpin for ComputerPreviewReadResult
impl UnsafeUnpin for ComputerPreviewReadResult
impl UnwindSafe for ComputerPreviewReadResult
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.