pub struct InferenceSegmentV1 {
pub segment_id: Sha256Digest,
pub position: u16,
pub content_or_representation_id: ScopedContentIdV1,
pub role: InferenceSegmentRoleV1,
pub mutability: InferenceMutabilityV1,
pub guard_hash: Sha256Digest,
pub token_count: u64,
pub delivery_state: InferenceDeliveryStateV1,
pub source_lineage: Vec<ScopedContentIdV1>,
}Fields§
§segment_id: Sha256Digest§position: u16§content_or_representation_id: ScopedContentIdV1§role: InferenceSegmentRoleV1§mutability: InferenceMutabilityV1§guard_hash: Sha256Digest§token_count: u64§delivery_state: InferenceDeliveryStateV1§source_lineage: Vec<ScopedContentIdV1>Implementations§
Source§impl InferenceSegmentV1
impl InferenceSegmentV1
pub fn from_canonical_bytes( scope: &ViaScopeV1, position: u16, role: InferenceSegmentRoleV1, mutability: InferenceMutabilityV1, canonical_bytes: &[u8], token_count: u64, delivery_state: InferenceDeliveryStateV1, source_lineage: Vec<ScopedContentIdV1>, ) -> Result<Self, ValidationError>
Trait Implementations§
Source§impl Clone for InferenceSegmentV1
impl Clone for InferenceSegmentV1
Source§impl Debug for InferenceSegmentV1
impl Debug for InferenceSegmentV1
Source§impl<'de> Deserialize<'de> for InferenceSegmentV1
impl<'de> Deserialize<'de> for InferenceSegmentV1
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 InferenceSegmentV1
Source§impl PartialEq for InferenceSegmentV1
impl PartialEq for InferenceSegmentV1
Source§impl Serialize for InferenceSegmentV1
impl Serialize for InferenceSegmentV1
impl StructuralPartialEq for InferenceSegmentV1
Auto Trait Implementations§
impl Forget for InferenceSegmentV1
impl Freeze for InferenceSegmentV1
impl Move for InferenceSegmentV1
impl RefUnwindSafe for InferenceSegmentV1
impl Send for InferenceSegmentV1
impl Sync for InferenceSegmentV1
impl Unpin for InferenceSegmentV1
impl UnsafeUnpin for InferenceSegmentV1
impl UnwindSafe for InferenceSegmentV1
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