pub struct CreateProviderAccountRequest {
pub name: String,
pub display_name: Option<String>,
pub kind: String,
pub token: String,
pub enabled: Option<bool>,
pub priority: Option<i32>,
pub tags: Option<Vec<String>>,
pub max_concurrency: Option<u32>,
pub alert_threshold: Option<f64>,
pub expires_at: Option<DateTime<Utc>>,
pub plan: Option<String>,
}Expand description
Request body to add a Provider Account. Admin only.
Fields§
§name: StringUnique slug, immutable (^[a-z0-9][a-z0-9-]{0,62}$).
display_name: Option<String>Human-readable name, defaults to name.
kind: StringAccount kind (see GET /provider-accounts/kinds).
token: StringCredential, write-only (e.g. a claude setup-token token).
enabled: Option<bool>Whether the account may be selected (default true).
priority: Option<i32>Priority, lower is preferred (default 100).
Tags, each a slug.
max_concurrency: Option<u32>Maximum concurrent steps (>= 1).
alert_threshold: Option<f64>Utilization from which the account is shown as near its limit, in (0, 1] (default 0.8).
expires_at: Option<DateTime<Utc>>When the credential expires (default: now + 365 days).
plan: Option<String>Subscription plan, informative (pro, max).
Trait Implementations§
Source§impl Debug for CreateProviderAccountRequest
impl Debug for CreateProviderAccountRequest
Source§impl<'de> Deserialize<'de> for CreateProviderAccountRequest
impl<'de> Deserialize<'de> for CreateProviderAccountRequest
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<'v_a> ValidateArgs<'v_a> for CreateProviderAccountRequest
impl<'v_a> ValidateArgs<'v_a> for CreateProviderAccountRequest
Auto Trait Implementations§
impl Freeze for CreateProviderAccountRequest
impl RefUnwindSafe for CreateProviderAccountRequest
impl Send for CreateProviderAccountRequest
impl Sync for CreateProviderAccountRequest
impl Unpin for CreateProviderAccountRequest
impl UnsafeUnpin for CreateProviderAccountRequest
impl UnwindSafe for CreateProviderAccountRequest
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