Skip to main content

outfox_openai/spec/admin/project_users/
api.rs

1use derive_builder::Builder;
2use serde::Serialize;
3
4use crate::error::OpenAIError;
5
6/// Query parameters for listing project users.
7#[derive(Debug, Serialize, Default, Clone, Builder, PartialEq)]
8#[builder(name = "ListProjectUsersQueryArgs")]
9#[builder(pattern = "mutable")]
10#[builder(setter(into, strip_option), default)]
11#[builder(derive(Debug))]
12#[builder(build_fn(error = "OpenAIError"))]
13pub struct ListProjectUsersQuery {
14    /// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
15    /// default is 20.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub limit: Option<u32>,
18    /// A cursor for use in pagination. `after` is an object ID that defines your place in the
19    /// list.
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub after: Option<String>,
22}