pub struct CreateGcpCredentialDto {
pub provider: ProviderTrue,
pub fallback_index: Option<f64>,
pub gcp_key: GcpKey,
pub region: Option<String>,
pub bucket_plan: Option<BucketPlan>,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
§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.
gcp_key: GcpKey
This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/
region: Option<String>
This is the region of the GCP resource.
bucket_plan: Option<BucketPlan>
§name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateGcpCredentialDto
impl CreateGcpCredentialDto
pub fn new(provider: ProviderTrue, gcp_key: GcpKey) -> CreateGcpCredentialDto
Trait Implementations§
Source§impl Clone for CreateGcpCredentialDto
impl Clone for CreateGcpCredentialDto
Source§fn clone(&self) -> CreateGcpCredentialDto
fn clone(&self) -> CreateGcpCredentialDto
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 CreateGcpCredentialDto
impl Debug for CreateGcpCredentialDto
Source§impl Default for CreateGcpCredentialDto
impl Default for CreateGcpCredentialDto
Source§fn default() -> CreateGcpCredentialDto
fn default() -> CreateGcpCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateGcpCredentialDto
impl<'de> Deserialize<'de> for CreateGcpCredentialDto
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 CreateGcpCredentialDto
impl PartialEq for CreateGcpCredentialDto
Source§impl Serialize for CreateGcpCredentialDto
impl Serialize for CreateGcpCredentialDto
impl StructuralPartialEq for CreateGcpCredentialDto
Auto Trait Implementations§
impl Freeze for CreateGcpCredentialDto
impl RefUnwindSafe for CreateGcpCredentialDto
impl Send for CreateGcpCredentialDto
impl Sync for CreateGcpCredentialDto
impl Unpin for CreateGcpCredentialDto
impl UnwindSafe for CreateGcpCredentialDto
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