pub struct R2Config {
pub account_id: String,
pub bucket: String,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub prefix: String,
}Fields§
§account_id: StringCloudflare account ID (found in the R2 dashboard URL).
bucket: StringR2 bucket name.
access_key_id: Option<String>R2 API token access key ID. Env override: INNATE_R2_ACCESS_KEY_ID.
secret_access_key: Option<String>R2 API token secret access key. Env override: INNATE_R2_SECRET_ACCESS_KEY.
prefix: StringOptional key prefix (e.g. “innate/”). Default: “”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for R2Config
impl<'de> Deserialize<'de> for R2Config
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
Auto Trait Implementations§
impl Freeze for R2Config
impl RefUnwindSafe for R2Config
impl Send for R2Config
impl Sync for R2Config
impl Unpin for R2Config
impl UnsafeUnpin for R2Config
impl UnwindSafe for R2Config
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