#[non_exhaustive]pub struct ItemReadOutputResult {
pub content: String,
pub encoding: ItemReadOutputEncoding,
pub byte_len: u64,
pub offset_bytes: u64,
pub eof: bool,
pub media_type: String,
}Expand description
item/readOutput result: one stored-byte page.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: StringThe served range, decoded per encoding.
encoding: ItemReadOutputEncodingHow content encodes the stored bytes.
byte_len: u64STORED bytes served in THIS response (not the output’s total; that is
outputRef.byteLen on the item). The next page’s offsetBytes is
offsetBytes + byteLen — short-serving and advancing are separate, so
paging never skips or double-reads a byte.
offset_bytes: u64The STORED-byte offset this response actually served from.
eof: booltrue when this range reached the end of the stored output.
media_type: StringThe stored output’s media type (e.g. text/plain).
Trait Implementations§
Source§impl Clone for ItemReadOutputResult
impl Clone for ItemReadOutputResult
Source§impl Debug for ItemReadOutputResult
impl Debug for ItemReadOutputResult
Source§impl<'de> Deserialize<'de> for ItemReadOutputResult
impl<'de> Deserialize<'de> for ItemReadOutputResult
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 ItemReadOutputResult
Source§impl PartialEq for ItemReadOutputResult
impl PartialEq for ItemReadOutputResult
Source§impl Serialize for ItemReadOutputResult
impl Serialize for ItemReadOutputResult
impl StructuralPartialEq for ItemReadOutputResult
Auto Trait Implementations§
impl Freeze for ItemReadOutputResult
impl RefUnwindSafe for ItemReadOutputResult
impl Send for ItemReadOutputResult
impl Sync for ItemReadOutputResult
impl Unpin for ItemReadOutputResult
impl UnsafeUnpin for ItemReadOutputResult
impl UnwindSafe for ItemReadOutputResult
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