pub struct ModelSourceCitation { /* private fields */ }Expand description
Provider-streamed citation awaiting canonical hosted call identity mapping.
Implementations§
Source§impl ModelSourceCitation
impl ModelSourceCitation
Sourcepub fn new(
provider_call_id: Option<ProviderToolCallId>,
citation: SourceCitation,
) -> Result<Self, ModelStreamValueError>
pub fn new( provider_call_id: Option<ProviderToolCallId>, citation: SourceCitation, ) -> Result<Self, ModelStreamValueError>
Creates a normalized citation without a canonical tool-call identifier.
§Errors
Returns an error when an adapter attempts to assign kernel-owned identity.
Sourcepub const fn provider_call_id(&self) -> Option<&ProviderToolCallId>
pub const fn provider_call_id(&self) -> Option<&ProviderToolCallId>
Returns the related provider activity identifier, when available.
Sourcepub const fn citation(&self) -> &SourceCitation
pub const fn citation(&self) -> &SourceCitation
Returns the normalized provider-neutral citation.
Trait Implementations§
Source§impl Clone for ModelSourceCitation
impl Clone for ModelSourceCitation
Source§fn clone(&self) -> ModelSourceCitation
fn clone(&self) -> ModelSourceCitation
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 ModelSourceCitation
impl Debug for ModelSourceCitation
impl Eq for ModelSourceCitation
Source§impl PartialEq for ModelSourceCitation
impl PartialEq for ModelSourceCitation
impl StructuralPartialEq for ModelSourceCitation
Auto Trait Implementations§
impl Freeze for ModelSourceCitation
impl RefUnwindSafe for ModelSourceCitation
impl Send for ModelSourceCitation
impl Sync for ModelSourceCitation
impl Unpin for ModelSourceCitation
impl UnsafeUnpin for ModelSourceCitation
impl UnwindSafe for ModelSourceCitation
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