pub struct CreateCommentRequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CreateCommentRequestBuilder<S>
impl<S: State> CreateCommentRequestBuilder<S>
Sourcepub fn build(self) -> CreateCommentRequestwhere
S: IsComplete,
pub fn build(self) -> CreateCommentRequestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn project_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
pub fn project_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
Required.
The id of the project to attach the comment to.
Sourcepub fn object_type(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
pub fn object_type(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
Required.
The type of the object to attach the comment to (trace, observation, session, prompt).
Sourcepub fn object_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
pub fn object_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
Required.
The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
Sourcepub fn content(
self,
value: String,
) -> CreateCommentRequestBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn content(
self,
value: String,
) -> CreateCommentRequestBuilder<SetContent<S>>where
S::Content: IsUnset,
Required.
The content of the comment. May include markdown. Currently limited to 5000 characters.
Auto Trait Implementations§
impl<S> Freeze for CreateCommentRequestBuilder<S>
impl<S> RefUnwindSafe for CreateCommentRequestBuilder<S>
impl<S> Send for CreateCommentRequestBuilder<S>
impl<S> Sync for CreateCommentRequestBuilder<S>
impl<S> Unpin for CreateCommentRequestBuilder<S>
impl<S> UnwindSafe for CreateCommentRequestBuilder<S>
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