pub struct ContentAnswer {
pub locator: Locator,
pub text: String,
pub bytes: u64,
pub truncated: bool,
pub binary: bool,
}Expand description
One object of the content store, cut to what travels.
The same bound and the same text judgement Document puts on a file
in the tree, for the same reasons: bytes with a NUL in the head are
not text, and showing them as text would show a reader something the
object does not say.
Fields§
§locator: LocatorThe locator asked for, handed back: the wire carries no request id, so a page matches an answer to its question by content.
text: String§bytes: u64§truncated: bool§binary: boolTrait Implementations§
Source§impl Clone for ContentAnswer
impl Clone for ContentAnswer
Source§impl Debug for ContentAnswer
impl Debug for ContentAnswer
Source§impl<'de> Deserialize<'de> for ContentAnswer
impl<'de> Deserialize<'de> for ContentAnswer
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 ContentAnswer
Source§impl PartialEq for ContentAnswer
impl PartialEq for ContentAnswer
Source§impl Serialize for ContentAnswer
impl Serialize for ContentAnswer
impl StructuralPartialEq for ContentAnswer
Auto Trait Implementations§
impl Freeze for ContentAnswer
impl RefUnwindSafe for ContentAnswer
impl Send for ContentAnswer
impl Sync for ContentAnswer
impl Unpin for ContentAnswer
impl UnsafeUnpin for ContentAnswer
impl UnwindSafe for ContentAnswer
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