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§fn clone(&self) -> TraceConversation
fn clone(&self) -> TraceConversation
Returns a duplicate of the value. Read more
1.0.0 · 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 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_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be 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 Freeze for TraceConversation
impl RefUnwindSafe for TraceConversation
impl Send for TraceConversation
impl Sync for TraceConversation
impl Unpin for TraceConversation
impl UnwindSafe for TraceConversation
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