Struct MessageSnapshot
pub struct MessageSnapshot {
pub role: String,
pub content: String,
}Expand description
A single conversation message captured for OTel GenAI semconv export.
Structurally mirrors crate::model_provider::ChatMessage but is defined
independently to keep the observability API decoupled from the model-provider
API and to signal that content has been credential-scrubbed at capture time.
Fields§
§role: String§content: StringTrait Implementations§
Source§impl Clone for MessageSnapshot
impl Clone for MessageSnapshot
Source§fn clone(&self) -> MessageSnapshot
fn clone(&self) -> MessageSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageSnapshot
impl RefUnwindSafe for MessageSnapshot
impl Send for MessageSnapshot
impl Sync for MessageSnapshot
impl Unpin for MessageSnapshot
impl UnsafeUnpin for MessageSnapshot
impl UnwindSafe for MessageSnapshot
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