Struct SpanId

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct SpanId(pub String);

Stable span identifier for addressable prompt blocks.

A newtype wrapper around String that provides Hash and Eq so SpanId values can be used as keys in HashMap / HashSet.

Tuple Fields

0: String

Trait Implementations

impl Clone for SpanId

impl Clone for SpanId

clone

fn clone(&self) -> SpanId

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for SpanId

impl Debug for SpanId

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for SpanId

impl<'de> Deserialize<'de> for SpanId

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl Hash for SpanId

impl Hash for SpanId

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl PartialEq for SpanId

impl PartialEq for SpanId

eq

fn eq(&self, other: &SpanId) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for SpanId

impl Serialize for SpanId

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for SpanId

impl Eq for SpanId

impl StructuralPartialEq for SpanId

impl StructuralPartialEq for SpanId