pub enum DepthGranularity {
Slot,
Oracle,
}Expand description
How often a depth job samples its source; each publishes its own dataset under the source.
Variants§
Slot
On a fixed one-slot grid (default).
Oracle
After each batch where the venue’s program or an oracle update wrote an account a probe
reads (onchain only).
Implementations§
Source§impl DepthGranularity
impl DepthGranularity
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this is Self::Slot, the default.
Trait Implementations§
Source§impl Clone for DepthGranularity
impl Clone for DepthGranularity
impl Copy for DepthGranularity
Source§impl Debug for DepthGranularity
impl Debug for DepthGranularity
Source§impl Default for DepthGranularity
impl Default for DepthGranularity
Source§impl<'de> Deserialize<'de> for DepthGranularity
impl<'de> Deserialize<'de> for DepthGranularity
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
Source§impl Display for DepthGranularity
impl Display for DepthGranularity
impl Eq for DepthGranularity
Source§impl<'_derivative_strum> From<&'_derivative_strum DepthGranularity> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DepthGranularity> for &'static str
Source§fn from(x: &'_derivative_strum DepthGranularity) -> &'static str
fn from(x: &'_derivative_strum DepthGranularity) -> &'static str
Converts to this type from the input type.
Source§impl From<DepthGranularity> for &'static str
impl From<DepthGranularity> for &'static str
Source§fn from(x: DepthGranularity) -> &'static str
fn from(x: DepthGranularity) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for DepthGranularity
impl PartialEq for DepthGranularity
Source§impl Serialize for DepthGranularity
impl Serialize for DepthGranularity
impl StructuralPartialEq for DepthGranularity
Source§impl ValueEnum for DepthGranularity
impl ValueEnum for DepthGranularity
Auto Trait Implementations§
impl Forget for DepthGranularity
impl Freeze for DepthGranularity
impl Move for DepthGranularity
impl RefUnwindSafe for DepthGranularity
impl Send for DepthGranularity
impl Sync for DepthGranularity
impl Unpin for DepthGranularity
impl UnsafeUnpin for DepthGranularity
impl UnwindSafe for DepthGranularity
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