pub struct ArcVirtualKey {
pub name: String,
pub expires_at: Option<String>,
pub security_enabled: Option<bool>,
pub security_action: Option<SecurityAction>,
pub rpm_limit: Option<i32>,
pub tpm_limit: Option<i32>,
}Expand description
ArcVirtualKey : A virtual key used to authenticate requests through the AI Runtime Control gateway.
Fields§
§name: StringA display name for the virtual key.
expires_at: Option<String>The date and time the key expires, in RFC 3339 format. Omit for a key that doesn’t expire.
security_enabled: Option<bool>Whether AI Firewall security is enabled for requests made with this key.
security_action: Option<SecurityAction>The action AI Firewall takes when it detects a violation on a request made with this key. Only meaningful when security_enabled is true.
rpm_limit: Option<i32>The requests-per-minute limit for this key. Omit for no limit.
tpm_limit: Option<i32>The tokens-per-minute limit for this key. Omit for no limit.
Implementations§
Source§impl ArcVirtualKey
impl ArcVirtualKey
Sourcepub fn new(name: String) -> ArcVirtualKey
pub fn new(name: String) -> ArcVirtualKey
A virtual key used to authenticate requests through the AI Runtime Control gateway.
Trait Implementations§
Source§impl Clone for ArcVirtualKey
impl Clone for ArcVirtualKey
Source§impl Debug for ArcVirtualKey
impl Debug for ArcVirtualKey
Source§impl Default for ArcVirtualKey
impl Default for ArcVirtualKey
Source§impl<'de> Deserialize<'de> for ArcVirtualKey
impl<'de> Deserialize<'de> for ArcVirtualKey
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 PartialEq for ArcVirtualKey
impl PartialEq for ArcVirtualKey
Source§impl Serialize for ArcVirtualKey
impl Serialize for ArcVirtualKey
impl StructuralPartialEq for ArcVirtualKey
Auto Trait Implementations§
impl Freeze for ArcVirtualKey
impl RefUnwindSafe for ArcVirtualKey
impl Send for ArcVirtualKey
impl Sync for ArcVirtualKey
impl Unpin for ArcVirtualKey
impl UnsafeUnpin for ArcVirtualKey
impl UnwindSafe for ArcVirtualKey
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