pub struct RequestMmObjectInfo {
pub mm_hash: u64,
pub offset: usize,
pub length: usize,
}Expand description
Multimodal placeholder run as carried on a Request.
Mirrors dynamo_tokens::TokenBlockMmInfo; kept distinct so the public Request shape
is owned by the kv-hashing crate. From conversions are provided in both directions.
Fields§
§mm_hash: u64Hash identifying the multimodal object.
offset: usizeStart position of the placeholder run in the full token sequence (zero-based).
length: usizeNumber of placeholder slots in the run.
Trait Implementations§
Source§impl Clone for RequestMmObjectInfo
impl Clone for RequestMmObjectInfo
Source§fn clone(&self) -> RequestMmObjectInfo
fn clone(&self) -> RequestMmObjectInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestMmObjectInfo
Source§impl Debug for RequestMmObjectInfo
impl Debug for RequestMmObjectInfo
Source§impl<'de> Deserialize<'de> for RequestMmObjectInfo
impl<'de> Deserialize<'de> for RequestMmObjectInfo
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 RequestMmObjectInfo
Source§impl From<RequestMmObjectInfo> for TokenBlockMmInfo
impl From<RequestMmObjectInfo> for TokenBlockMmInfo
Source§fn from(v: RequestMmObjectInfo) -> Self
fn from(v: RequestMmObjectInfo) -> Self
Converts to this type from the input type.
Source§impl From<TokenBlockMmInfo> for RequestMmObjectInfo
impl From<TokenBlockMmInfo> for RequestMmObjectInfo
Source§fn from(v: TokenBlockMmInfo) -> Self
fn from(v: TokenBlockMmInfo) -> Self
Converts to this type from the input type.
Source§impl Hash for RequestMmObjectInfo
impl Hash for RequestMmObjectInfo
Source§impl PartialEq for RequestMmObjectInfo
impl PartialEq for RequestMmObjectInfo
Source§fn eq(&self, other: &RequestMmObjectInfo) -> bool
fn eq(&self, other: &RequestMmObjectInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RequestMmObjectInfo
impl Serialize for RequestMmObjectInfo
impl StructuralPartialEq for RequestMmObjectInfo
Auto Trait Implementations§
impl Freeze for RequestMmObjectInfo
impl RefUnwindSafe for RequestMmObjectInfo
impl Send for RequestMmObjectInfo
impl Sync for RequestMmObjectInfo
impl Unpin for RequestMmObjectInfo
impl UnsafeUnpin for RequestMmObjectInfo
impl UnwindSafe for RequestMmObjectInfo
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