pub struct Oracle {
pub regions: Vec<String>,
pub compartment: String,
}Expand description
Oracle Cloud Infrastructure provider configuration.
Fields§
§regions: Vec<String>§compartment: StringTrait Implementations§
Source§impl Provider for Oracle
impl Provider for Oracle
Source§fn short_label(&self) -> &str
fn short_label(&self) -> &str
Short label for aliases (e.g. “do”).
Source§fn fetch_hosts_cancellable(
&self,
token: &str,
cancel: &AtomicBool,
env: &Env,
) -> Result<Vec<ProviderHost>, ProviderError>
fn fetch_hosts_cancellable( &self, token: &str, cancel: &AtomicBool, env: &Env, ) -> Result<Vec<ProviderHost>, ProviderError>
Fetch hosts with cancellation support.
env carries the resolved
process environment (home directory, credential env vars) so the few
providers that read AWS credentials or expand ~ in key paths take
them from the injected snapshot instead of ambient std::env /
dirs::home_dir. Most providers ignore it.Source§fn fetch_hosts_with_progress(
&self,
token: &str,
cancel: &AtomicBool,
env: &Env,
progress: &dyn Fn(&str),
) -> Result<Vec<ProviderHost>, ProviderError>
fn fetch_hosts_with_progress( &self, token: &str, cancel: &AtomicBool, env: &Env, progress: &dyn Fn(&str), ) -> Result<Vec<ProviderHost>, ProviderError>
Fetch hosts with progress reporting. Default delegates to fetch_hosts_cancellable.
Source§fn fetch_hosts(
&self,
token: &str,
env: &Env,
) -> Result<Vec<ProviderHost>, ProviderError>
fn fetch_hosts( &self, token: &str, env: &Env, ) -> Result<Vec<ProviderHost>, ProviderError>
Fetch all servers from the provider API.
Auto Trait Implementations§
impl Freeze for Oracle
impl RefUnwindSafe for Oracle
impl Send for Oracle
impl Sync for Oracle
impl Unpin for Oracle
impl UnsafeUnpin for Oracle
impl UnwindSafe for Oracle
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more