pub struct CreateCommentRequest {
pub project_id: String,
pub object_type: String,
pub object_id: String,
pub content: String,
pub author_user_id: Option<Option<String>>,
}Fields§
§project_id: StringThe id of the project to attach the comment to.
object_type: StringThe type of the object to attach the comment to (trace, observation, session, prompt).
object_id: StringThe id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
content: StringThe content of the comment. May include markdown. Currently limited to 5000 characters.
The id of the user who created the comment.
Implementations§
Source§impl CreateCommentRequest
impl CreateCommentRequest
Sourcepub fn builder() -> CreateCommentRequestBuilder
pub fn builder() -> CreateCommentRequestBuilder
Create an instance of CreateCommentRequest using the builder syntax
Trait Implementations§
Source§impl Clone for CreateCommentRequest
impl Clone for CreateCommentRequest
Source§fn clone(&self) -> CreateCommentRequest
fn clone(&self) -> CreateCommentRequest
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateCommentRequest
impl Debug for CreateCommentRequest
Source§impl Default for CreateCommentRequest
impl Default for CreateCommentRequest
Source§fn default() -> CreateCommentRequest
fn default() -> CreateCommentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCommentRequest
impl<'de> Deserialize<'de> for CreateCommentRequest
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 CreateCommentRequest
impl PartialEq for CreateCommentRequest
Source§impl Serialize for CreateCommentRequest
impl Serialize for CreateCommentRequest
impl StructuralPartialEq for CreateCommentRequest
Auto Trait Implementations§
impl Freeze for CreateCommentRequest
impl RefUnwindSafe for CreateCommentRequest
impl Send for CreateCommentRequest
impl Sync for CreateCommentRequest
impl Unpin for CreateCommentRequest
impl UnwindSafe for CreateCommentRequest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)