pub struct CloudflareCredential {
pub provider: ProviderTrue,
pub account_id: Option<String>,
pub api_key: Option<String>,
pub account_email: Option<String>,
pub fallback_index: Option<f64>,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub name: Option<String>,
pub bucket_plan: Option<CloudflareR2BucketPlan>,
}
Fields§
§provider: ProviderTrue
Credential provider. Only allowed value is cloudflare
account_id: Option<String>
Cloudflare Account Id.
api_key: Option<String>
Cloudflare API Key / Token.
account_email: Option<String>
Cloudflare Account Email.
fallback_index: Option<f64>
This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.
id: String
This is the unique identifier for the credential.
org_id: String
This is the unique identifier for the org that this credential belongs to.
created_at: String
This is the ISO 8601 date-time string of when the credential was created.
updated_at: String
This is the ISO 8601 date-time string of when the assistant was last updated.
name: Option<String>
This is the name of credential. This is just for your reference.
bucket_plan: Option<CloudflareR2BucketPlan>
This is the bucket plan that can be provided to store call artifacts in R2
Implementations§
Source§impl CloudflareCredential
impl CloudflareCredential
pub fn new( provider: ProviderTrue, id: String, org_id: String, created_at: String, updated_at: String, ) -> CloudflareCredential
Trait Implementations§
Source§impl Clone for CloudflareCredential
impl Clone for CloudflareCredential
Source§fn clone(&self) -> CloudflareCredential
fn clone(&self) -> CloudflareCredential
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CloudflareCredential
impl Debug for CloudflareCredential
Source§impl Default for CloudflareCredential
impl Default for CloudflareCredential
Source§fn default() -> CloudflareCredential
fn default() -> CloudflareCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudflareCredential
impl<'de> Deserialize<'de> for CloudflareCredential
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 CloudflareCredential
impl PartialEq for CloudflareCredential
Source§impl Serialize for CloudflareCredential
impl Serialize for CloudflareCredential
impl StructuralPartialEq for CloudflareCredential
Auto Trait Implementations§
impl Freeze for CloudflareCredential
impl RefUnwindSafe for CloudflareCredential
impl Send for CloudflareCredential
impl Sync for CloudflareCredential
impl Unpin for CloudflareCredential
impl UnwindSafe for CloudflareCredential
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