pub struct SlicerId {
pub name: String,
pub version: u32,
}Expand description
Re-exported so a consumer naming a slicer does not also depend on
boundgraph-core just for its identifier.
Which slicer produced a condensate, and at what version.
Recorded for reproducibility: replaying a run must be able to confirm that re-slicing the same raw output yields the same condensate, and that is only meaningful against a specific slicer version.
Fields§
§name: StringSlicer name, e.g. ast, log, diff, json.
version: u32Slicer version.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlicerId
impl<'de> Deserialize<'de> for SlicerId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlicerId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlicerId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SlicerId
Source§impl Ord for SlicerId
impl Ord for SlicerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SlicerId
impl PartialOrd for SlicerId
Source§impl Serialize for SlicerId
impl Serialize for SlicerId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SlicerId
Auto Trait Implementations§
impl Freeze for SlicerId
impl RefUnwindSafe for SlicerId
impl Send for SlicerId
impl Sync for SlicerId
impl Unpin for SlicerId
impl UnsafeUnpin for SlicerId
impl UnwindSafe for SlicerId
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
Source§impl<T> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.