pub struct CommandProviderConfig {
pub name: String,
pub command: String,
pub args: Vec<String>,
pub refresh: Option<Duration>,
pub timeout: Option<Duration>,
pub on_refresh_failure: RefreshFailurePolicy,
pub max_stale: Option<Duration>,
pub extra: BTreeMap<String, Value>,
}Fields§
§name: String§command: String§args: Vec<String>§refresh: Option<Duration>§timeout: Option<Duration>§on_refresh_failure: RefreshFailurePolicy§max_stale: Option<Duration>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for CommandProviderConfig
impl Clone for CommandProviderConfig
Source§fn clone(&self) -> CommandProviderConfig
fn clone(&self) -> CommandProviderConfig
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 CommandProviderConfig
impl Debug for CommandProviderConfig
Source§impl<'de> Deserialize<'de> for CommandProviderConfig
impl<'de> Deserialize<'de> for CommandProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandProviderConfig
impl RefUnwindSafe for CommandProviderConfig
impl Send for CommandProviderConfig
impl Sync for CommandProviderConfig
impl Unpin for CommandProviderConfig
impl UnsafeUnpin for CommandProviderConfig
impl UnwindSafe for CommandProviderConfig
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