pub struct ContextContributionId(/* private fields */);Expand description
Carries the context contribution id record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Implementations§
Source§impl ContextContributionId
impl ContextContributionId
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Creates a new records::context value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Trait Implementations§
Source§impl Clone for ContextContributionId
impl Clone for ContextContributionId
Source§fn clone(&self) -> ContextContributionId
fn clone(&self) -> ContextContributionId
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 ContextContributionId
impl Debug for ContextContributionId
Source§impl<'de> Deserialize<'de> for ContextContributionId
impl<'de> Deserialize<'de> for ContextContributionId
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 Hash for ContextContributionId
impl Hash for ContextContributionId
Source§impl Ord for ContextContributionId
impl Ord for ContextContributionId
Source§fn cmp(&self, other: &ContextContributionId) -> Ordering
fn cmp(&self, other: &ContextContributionId) -> 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
Source§impl PartialEq for ContextContributionId
impl PartialEq for ContextContributionId
Source§fn eq(&self, other: &ContextContributionId) -> bool
fn eq(&self, other: &ContextContributionId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContextContributionId
impl PartialOrd for ContextContributionId
Source§impl Serialize for ContextContributionId
impl Serialize for ContextContributionId
impl Eq for ContextContributionId
impl StructuralPartialEq for ContextContributionId
Auto Trait Implementations§
impl Freeze for ContextContributionId
impl RefUnwindSafe for ContextContributionId
impl Send for ContextContributionId
impl Sync for ContextContributionId
impl Unpin for ContextContributionId
impl UnsafeUnpin for ContextContributionId
impl UnwindSafe for ContextContributionId
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