pub struct CreateCloudflareCredentialDto {
pub provider: ProviderTrue,
pub account_id: Option<String>,
pub api_key: Option<String>,
pub account_email: Option<String>,
pub fallback_index: Option<f64>,
pub bucket_plan: Option<CloudflareR2BucketPlan>,
pub name: Option<String>,
}
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.
bucket_plan: Option<CloudflareR2BucketPlan>
This is the bucket plan that can be provided to store call artifacts in R2
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateCloudflareCredentialDto
impl CreateCloudflareCredentialDto
pub fn new(provider: ProviderTrue) -> CreateCloudflareCredentialDto
Trait Implementations§
Source§impl Clone for CreateCloudflareCredentialDto
impl Clone for CreateCloudflareCredentialDto
Source§fn clone(&self) -> CreateCloudflareCredentialDto
fn clone(&self) -> CreateCloudflareCredentialDto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CreateCloudflareCredentialDto
impl Default for CreateCloudflareCredentialDto
Source§fn default() -> CreateCloudflareCredentialDto
fn default() -> CreateCloudflareCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCloudflareCredentialDto
impl<'de> Deserialize<'de> for CreateCloudflareCredentialDto
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 CreateCloudflareCredentialDto
impl PartialEq for CreateCloudflareCredentialDto
Source§fn eq(&self, other: &CreateCloudflareCredentialDto) -> bool
fn eq(&self, other: &CreateCloudflareCredentialDto) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateCloudflareCredentialDto
Auto Trait Implementations§
impl Freeze for CreateCloudflareCredentialDto
impl RefUnwindSafe for CreateCloudflareCredentialDto
impl Send for CreateCloudflareCredentialDto
impl Sync for CreateCloudflareCredentialDto
impl Unpin for CreateCloudflareCredentialDto
impl UnwindSafe for CreateCloudflareCredentialDto
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