pub struct ShapePart {
pub bytes: u64,
pub hash: B3Hash,
}Expand description
One part of a request’s cache shape, as a record states it: how many bytes the part carries, and their hash.
Both figures because two questions read this row. A prompt cache compares the hash; a person asking why a request is expensive needs the bytes, which no hash can answer for.
Fields§
§bytes: u64§hash: B3HashTrait Implementations§
impl Copy for ShapePart
Source§impl<'de> Deserialize<'de> for ShapePart
impl<'de> Deserialize<'de> for ShapePart
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 ShapePart
impl StructuralPartialEq for ShapePart
Auto Trait Implementations§
impl Freeze for ShapePart
impl RefUnwindSafe for ShapePart
impl Send for ShapePart
impl Sync for ShapePart
impl Unpin for ShapePart
impl UnsafeUnpin for ShapePart
impl UnwindSafe for ShapePart
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