pub struct SchemaFingerprintV1(pub [u8; 32]);Expand description
BLAKE3-256 digest of the v1 deterministic-CBOR encoding of a stream element schema closure.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for SchemaFingerprintV1
impl Clone for SchemaFingerprintV1
Source§fn clone(&self) -> SchemaFingerprintV1
fn clone(&self) -> SchemaFingerprintV1
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 SchemaFingerprintV1
Source§impl Debug for SchemaFingerprintV1
impl Debug for SchemaFingerprintV1
Source§impl<'de> Deserialize<'de> for SchemaFingerprintV1
impl<'de> Deserialize<'de> for SchemaFingerprintV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaFingerprintV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaFingerprintV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SchemaFingerprintV1
impl Display for SchemaFingerprintV1
impl Eq for SchemaFingerprintV1
Source§impl FromSchema for SchemaFingerprintV1
impl FromSchema for SchemaFingerprintV1
fn from_value( value: &SchemaValue, ) -> Result<SchemaFingerprintV1, FromSchemaError>
Source§impl FromWire for SchemaFingerprintV1
Available on crate feature guest only.
impl FromWire for SchemaFingerprintV1
Available on crate feature
guest only.fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<SchemaFingerprintV1, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl Hash for SchemaFingerprintV1
impl Hash for SchemaFingerprintV1
Source§impl IntoSchema for SchemaFingerprintV1
impl IntoSchema for SchemaFingerprintV1
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for SchemaFingerprintV1
Available on crate feature guest only.
impl IntoWire for SchemaFingerprintV1
Available on crate feature
guest only.Source§const NEEDS_PREPARATION: bool = false
const NEEDS_PREPARATION: bool = false
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_wire(&self, writer: &mut WireWriter) -> Result<i32, WireError>
fn preflight(&self, _resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl Ord for SchemaFingerprintV1
impl Ord for SchemaFingerprintV1
Source§fn cmp(&self, other: &SchemaFingerprintV1) -> Ordering
fn cmp(&self, other: &SchemaFingerprintV1) -> Ordering
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 PartialEq for SchemaFingerprintV1
impl PartialEq for SchemaFingerprintV1
Source§impl PartialOrd for SchemaFingerprintV1
impl PartialOrd for SchemaFingerprintV1
Source§impl Serialize for SchemaFingerprintV1
impl Serialize for SchemaFingerprintV1
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 SchemaFingerprintV1
Source§impl WireSchema for SchemaFingerprintV1
Available on crate feature guest only.
impl WireSchema for SchemaFingerprintV1
Available on crate feature
guest only.fn wire_type_id() -> String
fn append_schema(builder: &mut WireSchemaBuilder) -> i32
const IS_UNIT: bool = false
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
Auto Trait Implementations§
impl Freeze for SchemaFingerprintV1
impl RefUnwindSafe for SchemaFingerprintV1
impl Send for SchemaFingerprintV1
impl Sync for SchemaFingerprintV1
impl Unpin for SchemaFingerprintV1
impl UnsafeUnpin for SchemaFingerprintV1
impl UnwindSafe for SchemaFingerprintV1
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