pub enum RefreshPolicy {
Manual,
OnLoad,
Interval {
secs: u64,
},
}Expand description
When an external-sourced measure (SQL or external-function) should refresh.
Variants§
Manual
Only when explicitly asked (the safe default).
OnLoad
Whenever the model is loaded/opened by a tool that honors the policy.
Interval
At most every secs seconds (advisory; the honoring tool tracks time).
Trait Implementations§
Source§impl Clone for RefreshPolicy
impl Clone for RefreshPolicy
Source§fn clone(&self) -> RefreshPolicy
fn clone(&self) -> RefreshPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefreshPolicy
Source§impl Debug for RefreshPolicy
impl Debug for RefreshPolicy
Source§impl Default for RefreshPolicy
impl Default for RefreshPolicy
Source§fn default() -> RefreshPolicy
fn default() -> RefreshPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RefreshPolicy
impl<'de> Deserialize<'de> for RefreshPolicy
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
impl Eq for RefreshPolicy
Source§impl PartialEq for RefreshPolicy
impl PartialEq for RefreshPolicy
Source§impl Serialize for RefreshPolicy
impl Serialize for RefreshPolicy
impl StructuralPartialEq for RefreshPolicy
Auto Trait Implementations§
impl Freeze for RefreshPolicy
impl RefUnwindSafe for RefreshPolicy
impl Send for RefreshPolicy
impl Sync for RefreshPolicy
impl Unpin for RefreshPolicy
impl UnsafeUnpin for RefreshPolicy
impl UnwindSafe for RefreshPolicy
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