pub struct VectorArtifactV1 {
pub schema_version: String,
pub profile: VectorCodecProfileV1,
pub profile_digest: String,
pub artifact_digest: String,
pub encoded: Vec<u8>,
}Expand description
Persistable encoded vector plus the profile identity required to decode it.
Fields§
§schema_version: StringStable schema marker for this artifact format.
profile: VectorCodecProfileV1Full codec profile used to produce encoded.
profile_digest: StringDigest of profile; checked before decode.
artifact_digest: StringDigest of encoded; checked before decode when present.
encoded: Vec<u8>Codec-owned encoded bytes.
Implementations§
Source§impl VectorArtifactV1
impl VectorArtifactV1
Sourcepub fn new(profile: VectorCodecProfileV1, encoded: Vec<u8>) -> Self
pub fn new(profile: VectorCodecProfileV1, encoded: Vec<u8>) -> Self
Construct a new artifact and stamp the profile digest.
Sourcepub fn encoded_digest(&self) -> String
pub fn encoded_digest(&self) -> String
Stable digest over encoded artifact bytes.
Trait Implementations§
Source§impl Clone for VectorArtifactV1
impl Clone for VectorArtifactV1
Source§fn clone(&self) -> VectorArtifactV1
fn clone(&self) -> VectorArtifactV1
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 moreSource§impl Debug for VectorArtifactV1
impl Debug for VectorArtifactV1
Source§impl<'de> Deserialize<'de> for VectorArtifactV1
impl<'de> Deserialize<'de> for VectorArtifactV1
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
Source§impl PartialEq for VectorArtifactV1
impl PartialEq for VectorArtifactV1
Source§fn eq(&self, other: &VectorArtifactV1) -> bool
fn eq(&self, other: &VectorArtifactV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VectorArtifactV1
impl Serialize for VectorArtifactV1
impl Eq for VectorArtifactV1
impl StructuralPartialEq for VectorArtifactV1
Auto Trait Implementations§
impl Freeze for VectorArtifactV1
impl RefUnwindSafe for VectorArtifactV1
impl Send for VectorArtifactV1
impl Sync for VectorArtifactV1
impl Unpin for VectorArtifactV1
impl UnsafeUnpin for VectorArtifactV1
impl UnwindSafe for VectorArtifactV1
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