Struct reqsign::OCICredential
source · pub struct OCICredential {
pub tenancy: String,
pub user: String,
pub key_file: Option<String>,
pub fingerprint: Option<String>,
pub expires_in: Option<DateTime<Utc>>,
}
Expand description
Credential that holds the API private key. private_key_path is optional, because some other credential will be added later
Fields§
§tenancy: String
TenantID for Oracle Cloud Infrastructure.
user: String
UserID for Oracle Cloud Infrastructure.
key_file: Option<String>
API Private Key for credential.
fingerprint: Option<String>
Fingerprint of the API Key.
expires_in: Option<DateTime<Utc>>
expires in for credential.
Implementations§
Trait Implementations§
source§impl Clone for Credential
impl Clone for Credential
source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
Returns a copy 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 Credential
impl Default for Credential
source§fn default() -> Credential
fn default() -> Credential
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)