#[non_exhaustive]pub struct DiscoveryStatus {
pub state: State,
pub message: String,
pub update_time: Option<Timestamp>,
pub last_run_time: Option<Timestamp>,
pub stats: Option<Stats>,
pub last_run_duration: Option<Duration>,
/* private fields */
}Expand description
Status of discovery for an asset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: StateThe current status of the discovery feature.
message: StringAdditional information about the current state.
update_time: Option<Timestamp>Last update time of the status.
last_run_time: Option<Timestamp>The start time of the last discovery run.
stats: Option<Stats>Data Stats of the asset reported by discovery.
last_run_duration: Option<Duration>The duration of the last discovery run.
Implementations§
Source§impl DiscoveryStatus
impl DiscoveryStatus
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_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_last_run_time<T>(self, v: T) -> Self
pub fn set_last_run_time<T>(self, v: T) -> Self
Sets the value of last_run_time.
Sourcepub fn set_or_clear_last_run_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_run_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_run_time.
Sourcepub fn set_or_clear_stats<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_stats<T>(self, v: Option<T>) -> Self
Sets or clears the value of stats.
Sourcepub fn set_last_run_duration<T>(self, v: T) -> Self
pub fn set_last_run_duration<T>(self, v: T) -> Self
Sets the value of last_run_duration.
Sourcepub fn set_or_clear_last_run_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_run_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_run_duration.
Trait Implementations§
Source§impl Clone for DiscoveryStatus
impl Clone for DiscoveryStatus
Source§fn clone(&self) -> DiscoveryStatus
fn clone(&self) -> DiscoveryStatus
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 Debug for DiscoveryStatus
impl Debug for DiscoveryStatus
Source§impl Default for DiscoveryStatus
impl Default for DiscoveryStatus
Source§fn default() -> DiscoveryStatus
fn default() -> DiscoveryStatus
Returns the “default value” for a type. Read more
Source§impl Message for DiscoveryStatus
impl Message for DiscoveryStatus
Source§impl PartialEq for DiscoveryStatus
impl PartialEq for DiscoveryStatus
impl StructuralPartialEq for DiscoveryStatus
Auto Trait Implementations§
impl Freeze for DiscoveryStatus
impl RefUnwindSafe for DiscoveryStatus
impl Send for DiscoveryStatus
impl Sync for DiscoveryStatus
impl Unpin for DiscoveryStatus
impl UnwindSafe for DiscoveryStatus
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