pub struct create {
pub initial_difficulty: u64,
pub window_seconds: u32,
pub target_min: u32,
pub target_max: u32,
pub floor_difficulty: u64,
pub increase_ppm: u32,
pub decrease_ppm: u32,
}Expand description
This structure has the same JSON and Fracpack format as the arguments to Actions::create.
Fields§
§initial_difficulty: u64§window_seconds: u32§target_min: u32§target_max: u32§floor_difficulty: u64§increase_ppm: u32§decrease_ppm: u32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for create
impl<'de> Deserialize<'de> for create
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<'a> Unpack<'a> for create
impl<'a> Unpack<'a> for create
Source§fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
fn unpack(src: &mut FracInputStream<'a>) -> Result<Self>
Convert from fracpack format. Also verifies the integrity of the data. Read more
Source§fn verify(src: &mut FracInputStream<'_>) -> Result<()>
fn verify(src: &mut FracInputStream<'_>) -> Result<()>
Verify the integrity of fracpack data. You don’t need to call this if
using [Pack::unpack] since it verifies integrity during unpack.
Auto Trait Implementations§
impl Freeze for create
impl RefUnwindSafe for create
impl Send for create
impl Sync for create
impl Unpin for create
impl UnsafeUnpin for create
impl UnwindSafe for create
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