pub struct TraceConversation {
pub url: Option<String>,
pub contributor: Option<Contributor>,
pub ranges: Vec<TraceRange>,
pub related: Option<Vec<RelatedResource>>,
}Expand description
A conversation that contributed code to a file.
Fields§
§url: Option<String>URL to look up the conversation that produced this code.
contributor: Option<Contributor>The contributor for ranges in this conversation.
ranges: Vec<TraceRange>Array of line ranges produced by this conversation.
Other related resources.
Implementations§
Source§impl TraceConversation
impl TraceConversation
Sourcepub fn ai(model_id: impl Into<String>, ranges: Vec<TraceRange>) -> Self
pub fn ai(model_id: impl Into<String>, ranges: Vec<TraceRange>) -> Self
Create a conversation with AI contributor.
Sourcepub fn with_session_url(self, url: impl Into<String>) -> Self
pub fn with_session_url(self, url: impl Into<String>) -> Self
Create a conversation with session URL.
Trait Implementations§
Source§impl Clone for TraceConversation
impl Clone for TraceConversation
Source§impl Debug for TraceConversation
impl Debug for TraceConversation
Source§impl<'de> Deserialize<'de> for TraceConversation
impl<'de> Deserialize<'de> for TraceConversation
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 JsonSchema for TraceConversation
impl JsonSchema for TraceConversation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TraceConversation
impl PartialEq for TraceConversation
Source§impl Serialize for TraceConversation
impl Serialize for TraceConversation
impl StructuralPartialEq for TraceConversation
Auto Trait Implementations§
impl Forget for TraceConversation
impl Freeze for TraceConversationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TraceRange>: Freeze,
PhantomData<RelatedResource>: Freeze,
impl Move for TraceConversation
impl RefUnwindSafe for TraceConversation
impl Send for TraceConversationwhere
RawVecInner: Send,
impl Sync for TraceConversationwhere
RawVecInner: Sync,
impl Unpin for TraceConversation
impl UnsafeUnpin for TraceConversationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TraceRange>: UnsafeUnpin,
PhantomData<RelatedResource>: UnsafeUnpin,
impl UnwindSafe for TraceConversationwhere
RawVecInner: UnwindSafe,
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