pub struct ProviderTranscriptItem { /* private fields */ }Expand description
One exact provider-owned item. payload stays private so callers cannot
bypass validation after construction.
Implementations§
Source§impl ProviderTranscriptItem
impl ProviderTranscriptItem
pub fn try_from_payload( family: ProviderFamily, protocol: ProviderProtocol, origin: ProviderTranscriptOrigin, author: ProviderTranscriptAuthor, payload: Value, ) -> Result<Self, ProviderTranscriptError>
pub fn family(&self) -> ProviderFamily
pub fn protocol(&self) -> ProviderProtocol
pub fn origin(&self) -> ProviderTranscriptOrigin
pub fn kind(&self) -> ProviderTranscriptItemKind
pub fn id(&self) -> &str
pub fn payload(&self) -> &Value
pub fn payload_sha256(&self) -> String
Trait Implementations§
Source§impl Clone for ProviderTranscriptItem
impl Clone for ProviderTranscriptItem
Source§fn clone(&self) -> ProviderTranscriptItem
fn clone(&self) -> ProviderTranscriptItem
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 ProviderTranscriptItem
Debug output is deliberately payload-free. Provider items may include tool
schemas, arguments, paths, or opaque provider fields.
impl Debug for ProviderTranscriptItem
Debug output is deliberately payload-free. Provider items may include tool schemas, arguments, paths, or opaque provider fields.
Source§impl<'de> Deserialize<'de> for ProviderTranscriptItem
impl<'de> Deserialize<'de> for ProviderTranscriptItem
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 PartialEq for ProviderTranscriptItem
impl PartialEq for ProviderTranscriptItem
Source§impl Serialize for ProviderTranscriptItem
impl Serialize for ProviderTranscriptItem
impl StructuralPartialEq for ProviderTranscriptItem
Auto Trait Implementations§
impl Freeze for ProviderTranscriptItem
impl RefUnwindSafe for ProviderTranscriptItem
impl Send for ProviderTranscriptItem
impl Sync for ProviderTranscriptItem
impl Unpin for ProviderTranscriptItem
impl UnsafeUnpin for ProviderTranscriptItem
impl UnwindSafe for ProviderTranscriptItem
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