Struct clockwork_thread_program::state::ClockData
source · pub struct ClockData {
pub slot: u64,
pub epoch: u64,
pub unix_timestamp: i64,
}
Expand description
The clock object, representing a specific moment in time recorded by a Solana cluster.
Fields§
§slot: u64
The current slot.
epoch: u64
The bank epoch.
unix_timestamp: i64
The current unix timestamp.
Trait Implementations§
source§impl BorshSchema for ClockDatawhere
u64: BorshSchema,
i64: BorshSchema,
impl BorshSchema for ClockDatawhere u64: BorshSchema, i64: BorshSchema,
source§fn declaration() -> String
fn declaration() -> String
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definitions_recursively( definitions: &mut HashMap<String, Definition, RandomState> )
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type.
§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition, RandomState> )
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
source§impl PartialEq<ClockData> for ClockData
impl PartialEq<ClockData> for ClockData
impl StructuralPartialEq for ClockData
Auto Trait Implementations§
impl RefUnwindSafe for ClockData
impl Send for ClockData
impl Sync for ClockData
impl Unpin for ClockData
impl UnwindSafe for ClockData
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