#[non_exhaustive]pub struct DiscoveryEvent {
pub message: String,
pub lake_id: String,
pub zone_id: String,
pub asset_id: String,
pub data_location: String,
pub datascan_id: String,
pub type: EventType,
pub details: Option<Details>,
/* private fields */
}Expand description
The payload associated with Discovery data processing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message: StringThe log message.
lake_id: StringThe id of the associated lake.
zone_id: StringThe id of the associated zone.
asset_id: StringThe id of the associated asset.
data_location: StringThe data location associated with the event.
datascan_id: StringThe id of the associated datascan for standalone discovery.
type: EventTypeThe type of the event being logged.
details: Option<Details>Additional details about the event.
Implementations§
Source§impl DiscoveryEvent
impl DiscoveryEvent
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_lake_id<T: Into<String>>(self, v: T) -> Self
pub fn set_lake_id<T: Into<String>>(self, v: T) -> Self
Sets the value of lake_id.
Sourcepub fn set_zone_id<T: Into<String>>(self, v: T) -> Self
pub fn set_zone_id<T: Into<String>>(self, v: T) -> Self
Sets the value of zone_id.
Sourcepub fn set_asset_id<T: Into<String>>(self, v: T) -> Self
pub fn set_asset_id<T: Into<String>>(self, v: T) -> Self
Sets the value of asset_id.
Sourcepub fn set_data_location<T: Into<String>>(self, v: T) -> Self
pub fn set_data_location<T: Into<String>>(self, v: T) -> Self
Sets the value of data_location.
Sourcepub fn set_datascan_id<T: Into<String>>(self, v: T) -> Self
pub fn set_datascan_id<T: Into<String>>(self, v: T) -> Self
Sets the value of datascan_id.
Sourcepub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
pub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
Sets the value of details.
Note that all the setters affecting details are mutually
exclusive.
Sourcepub fn config(&self) -> Option<&Box<ConfigDetails>>
pub fn config(&self) -> Option<&Box<ConfigDetails>>
The value of details
if it holds a Config, None if the field is not set or
holds a different branch.
Sourcepub fn set_config<T: Into<Box<ConfigDetails>>>(self, v: T) -> Self
pub fn set_config<T: Into<Box<ConfigDetails>>>(self, v: T) -> Self
Sets the value of details
to hold a Config.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn entity(&self) -> Option<&Box<EntityDetails>>
pub fn entity(&self) -> Option<&Box<EntityDetails>>
The value of details
if it holds a Entity, None if the field is not set or
holds a different branch.
Sourcepub fn set_entity<T: Into<Box<EntityDetails>>>(self, v: T) -> Self
pub fn set_entity<T: Into<Box<EntityDetails>>>(self, v: T) -> Self
Sets the value of details
to hold a Entity.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn partition(&self) -> Option<&Box<PartitionDetails>>
pub fn partition(&self) -> Option<&Box<PartitionDetails>>
The value of details
if it holds a Partition, None if the field is not set or
holds a different branch.
Sourcepub fn set_partition<T: Into<Box<PartitionDetails>>>(self, v: T) -> Self
pub fn set_partition<T: Into<Box<PartitionDetails>>>(self, v: T) -> Self
Sets the value of details
to hold a Partition.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn action(&self) -> Option<&Box<ActionDetails>>
pub fn action(&self) -> Option<&Box<ActionDetails>>
The value of details
if it holds a Action, None if the field is not set or
holds a different branch.
Sourcepub fn set_action<T: Into<Box<ActionDetails>>>(self, v: T) -> Self
pub fn set_action<T: Into<Box<ActionDetails>>>(self, v: T) -> Self
Sets the value of details
to hold a Action.
Note that all the setters affecting details are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DiscoveryEvent
impl Clone for DiscoveryEvent
Source§fn clone(&self) -> DiscoveryEvent
fn clone(&self) -> DiscoveryEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more