pub struct Config {
pub api_keys: Vec<String>,
pub public_url: Option<String>,
pub max_batch_concurrency: Option<usize>,
pub store: Option<Store>,
pub key_limits: HashMap<String, KeyLimits>,
pub default_limits: KeyLimits,
pub webhook: WebhookSettings,
}Fields§
§api_keys: Vec<String>When empty, authentication is disabled; otherwise requires Authorization: Bearer <key>.
public_url: Option<String>Public URL for building absolute resource links.
max_batch_concurrency: Option<usize>§store: Option<Store>Persistent store for jobs and resume capability.
key_limits: HashMap<String, KeyLimits>Per-key custom limits.
default_limits: KeyLimitsDefault limits applied to other keys or unauthenticated callers.
webhook: WebhookSettingsTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl !UnwindSafe for Config
impl Freeze for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
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