pub struct EvalStoredCompletionsSource {
pub metadata: Option<Metadata>,
pub model: Option<String>,
pub created_after: Option<u64>,
pub created_before: Option<u64>,
pub limit: Option<u64>,
}
Expand description
A StoredCompletionsRunDataSource configuration describing a set of filters
Fields§
§metadata: Option<Metadata>
§model: Option<String>
An optional model to filter by (e.g., ‘gpt-4o’).
created_after: Option<u64>
An optional Unix timestamp to filter items created after this time.
created_before: Option<u64>
An optional Unix timestamp to filter items created before this time.
limit: Option<u64>
An optional maximum number of items to return.
Implementations§
Source§impl EvalStoredCompletionsSource
impl EvalStoredCompletionsSource
Sourcepub fn builder() -> EvalStoredCompletionsSourceBuilder<((), (), (), (), ())>
pub fn builder() -> EvalStoredCompletionsSourceBuilder<((), (), (), (), ())>
Create a builder for building EvalStoredCompletionsSource
.
On the builder, call .metadata(...)
(optional), .model(...)
(optional), .created_after(...)
(optional), .created_before(...)
(optional), .limit(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of EvalStoredCompletionsSource
.
Trait Implementations§
Source§impl Clone for EvalStoredCompletionsSource
impl Clone for EvalStoredCompletionsSource
Source§fn clone(&self) -> EvalStoredCompletionsSource
fn clone(&self) -> EvalStoredCompletionsSource
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 EvalStoredCompletionsSource
impl Debug for EvalStoredCompletionsSource
Source§impl Default for EvalStoredCompletionsSource
impl Default for EvalStoredCompletionsSource
Source§fn default() -> EvalStoredCompletionsSource
fn default() -> EvalStoredCompletionsSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvalStoredCompletionsSource
impl<'de> Deserialize<'de> for EvalStoredCompletionsSource
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
impl StructuralPartialEq for EvalStoredCompletionsSource
Auto Trait Implementations§
impl Freeze for EvalStoredCompletionsSource
impl RefUnwindSafe for EvalStoredCompletionsSource
impl Send for EvalStoredCompletionsSource
impl Sync for EvalStoredCompletionsSource
impl Unpin for EvalStoredCompletionsSource
impl UnwindSafe for EvalStoredCompletionsSource
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