Skip to main content

StorageHeartbeatData

Enum StorageHeartbeatData 

Source
pub enum StorageHeartbeatData {
    Variant0 {
Show 18 fields backend: StorageHeartbeatDataVariant0Backend, block_public_acls: Option<bool>, block_public_policy: Option<bool>, bucket_acl_present: Option<bool>, bucket_location: Option<String>, bucket_policy_present: Option<bool>, encryption_config_present: bool, encryption_enabled: Option<bool>, ignore_public_acls: Option<bool>, lifecycle_present: bool, lifecycle_rule_count: Option<i64>, name: String, public_access_block_present: bool, region: Option<String>, restrict_public_buckets: Option<bool>, status: StorageHeartbeatStatus, versioning_enabled: Option<bool>, versioning_status: Option<String>,
}, Variant1 {
Show 20 fields backend: StorageHeartbeatDataVariant1Backend, bucket_id: Option<String>, default_kms_key_name: Option<String>, encryption_config_present: bool, lifecycle_present: bool, lifecycle_rule_count: Option<i64>, location: Option<String>, location_type: Option<String>, name: String, public_access_prevention: Option<String>, retention_period: Option<String>, retention_policy_effective_time: Option<String>, retention_policy_is_locked: Option<bool>, soft_delete_effective_time: Option<String>, soft_delete_retention_duration_seconds: Option<String>, status: StorageHeartbeatStatus, storage_class: Option<String>, uniform_bucket_level_access_enabled: Option<bool>, uniform_bucket_level_access_locked_time: Option<String>, versioning_enabled: Option<bool>,
}, Variant2 {
Show 30 fields access_tier: Option<String>, account_kind: Option<String>, allow_blob_public_access: Option<bool>, backend: StorageHeartbeatDataVariant2Backend, blob_delete_retention_days: Option<i64>, blob_delete_retention_enabled: Option<bool>, blob_encryption_enabled: Option<bool>, blob_versioning_enabled: Option<bool>, change_feed_enabled: Option<bool>, change_feed_retention_days: Option<i64>, container_delete_retention_days: Option<i64>, container_delete_retention_enabled: Option<bool>, container_public_access: Option<String>, encryption_key_source: Option<String>, file_encryption_enabled: Option<bool>, location: Option<String>, name: String, primary_location: Option<String>, provisioning_state: Option<String>, public_network_access: Option<String>, queue_encryption_enabled: Option<bool>, resource_group: Option<String>, secondary_location: Option<String>, sku_name: Option<String>, sku_tier: Option<String>, status: StorageHeartbeatStatus, status_of_primary: Option<String>, status_of_secondary: Option<String>, storage_account_name: Option<String>, table_encryption_enabled: Option<bool>,
}, Variant3 { backend: StorageHeartbeatDataVariant3Backend, is_directory: Option<bool>, modified_at: Option<DateTime<Utc>>, path: String, path_exists: bool, readonly: Option<bool>, status: StorageHeartbeatStatus, }, }
Expand description

StorageHeartbeatData

JSON schema
{
 "oneOf": [
   {
     "allOf": [
       {
         "$ref": "#/components/schemas/AwsS3StorageHeartbeatData"
       },
       {
         "type": "object",
         "required": [
           "backend"
         ],
         "properties": {
           "backend": {
             "type": "string",
             "enum": [
               "awsS3"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "$ref": "#/components/schemas/GcpCloudStorageHeartbeatData"
       },
       {
         "type": "object",
         "required": [
           "backend"
         ],
         "properties": {
           "backend": {
             "type": "string",
             "enum": [
               "gcpCloudStorage"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "$ref": "#/components/schemas/AzureBlobStorageHeartbeatData"
       },
       {
         "type": "object",
         "required": [
           "backend"
         ],
         "properties": {
           "backend": {
             "type": "string",
             "enum": [
               "azureBlob"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "$ref": "#/components/schemas/LocalStorageHeartbeatData"
       },
       {
         "type": "object",
         "required": [
           "backend"
         ],
         "properties": {
           "backend": {
             "type": "string",
             "enum": [
               "local"
             ]
           }
         }
       }
     ]
   }
 ]
}

Variants§

§

Variant0

Fields

§block_public_acls: Option<bool>
§block_public_policy: Option<bool>
§bucket_acl_present: Option<bool>
§bucket_location: Option<String>
§bucket_policy_present: Option<bool>
§encryption_config_present: bool
§encryption_enabled: Option<bool>
§ignore_public_acls: Option<bool>
§lifecycle_present: bool
§lifecycle_rule_count: Option<i64>
§name: String
§public_access_block_present: bool
§region: Option<String>
§restrict_public_buckets: Option<bool>
§versioning_enabled: Option<bool>
§versioning_status: Option<String>
§

Variant1

Fields

§bucket_id: Option<String>
§default_kms_key_name: Option<String>
§encryption_config_present: bool
§lifecycle_present: bool
§lifecycle_rule_count: Option<i64>
§location: Option<String>
§location_type: Option<String>
§name: String
§public_access_prevention: Option<String>
§retention_period: Option<String>
§retention_policy_effective_time: Option<String>
§retention_policy_is_locked: Option<bool>
§soft_delete_effective_time: Option<String>
§soft_delete_retention_duration_seconds: Option<String>
§storage_class: Option<String>
§uniform_bucket_level_access_enabled: Option<bool>
§uniform_bucket_level_access_locked_time: Option<String>
§versioning_enabled: Option<bool>
§

Variant2

Fields

§access_tier: Option<String>
§account_kind: Option<String>
§allow_blob_public_access: Option<bool>
§blob_delete_retention_days: Option<i64>
§blob_delete_retention_enabled: Option<bool>
§blob_encryption_enabled: Option<bool>
§blob_versioning_enabled: Option<bool>
§change_feed_enabled: Option<bool>
§change_feed_retention_days: Option<i64>
§container_delete_retention_days: Option<i64>
§container_delete_retention_enabled: Option<bool>
§container_public_access: Option<String>
§encryption_key_source: Option<String>
§file_encryption_enabled: Option<bool>
§location: Option<String>
§name: String
§primary_location: Option<String>
§provisioning_state: Option<String>
§public_network_access: Option<String>
§queue_encryption_enabled: Option<bool>
§resource_group: Option<String>
§secondary_location: Option<String>
§sku_name: Option<String>
§sku_tier: Option<String>
§status_of_primary: Option<String>
§status_of_secondary: Option<String>
§storage_account_name: Option<String>
§table_encryption_enabled: Option<bool>
§

Variant3

Fields

§is_directory: Option<bool>
§modified_at: Option<DateTime<Utc>>
§path: String
§path_exists: bool
§readonly: Option<bool>

Trait Implementations§

Source§

impl Clone for StorageHeartbeatData

Source§

fn clone(&self) -> StorageHeartbeatData

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StorageHeartbeatData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StorageHeartbeatData

Source§

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 From<&StorageHeartbeatData> for StorageHeartbeatData

Source§

fn from(value: &StorageHeartbeatData) -> Self

Converts to this type from the input type.
Source§

impl From<StorageHeartbeatData> for ResourceHeartbeatData

Source§

fn from(value: StorageHeartbeatData) -> Self

Converts to this type from the input type.
Source§

impl Serialize for StorageHeartbeatData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more