pub enum CloudProvider {
Aws,
Azure,
GoogleCloud,
}Expand description
Supported cloud providers that can be detected by this crate.
Variants§
Implementations§
Source§impl CloudProvider
impl CloudProvider
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Static str representation of the CloudProvider.
Sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
Cloud Provider code.
This corresponds to the cloud.provider attribute in OpenTelemetry semantic conventions.
See: https://opentelemetry.io/docs/specs/semconv/attributes-registry/cloud/
Trait Implementations§
Source§impl Clone for CloudProvider
impl Clone for CloudProvider
Source§fn clone(&self) -> CloudProvider
fn clone(&self) -> CloudProvider
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 Display for CloudProvider
impl Display for CloudProvider
Source§impl PartialEq for CloudProvider
impl PartialEq for CloudProvider
impl Copy for CloudProvider
impl Eq for CloudProvider
impl StructuralPartialEq for CloudProvider
Auto Trait Implementations§
impl Freeze for CloudProvider
impl RefUnwindSafe for CloudProvider
impl Send for CloudProvider
impl Sync for CloudProvider
impl Unpin for CloudProvider
impl UnwindSafe for CloudProvider
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