pub struct set_window {
pub nft_id: u32,
pub seconds: u32,
}Expand description
This structure has the same JSON and Fracpack format as the arguments to Actions::set_window.
Fields§
§nft_id: u32§seconds: u32Implementations§
Source§impl set_window
impl set_window
pub const ACTION_NAME: &'static str = "set_window"
Trait Implementations§
Source§impl Clone for set_window
impl Clone for set_window
Source§fn clone(&self) -> set_window
fn clone(&self) -> set_window
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 set_window
impl Debug for set_window
Source§impl<'de> Deserialize<'de> for set_window
impl<'de> Deserialize<'de> for set_window
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 Pack for set_window
impl Pack for set_window
Source§impl Serialize for set_window
impl Serialize for set_window
Source§impl ToSchema for set_window
impl ToSchema for set_window
fn schema(builder: &mut SchemaBuilder) -> AnyType
Source§impl<'a> Unpack<'a> for set_window
impl<'a> Unpack<'a> for set_window
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 set_window
impl RefUnwindSafe for set_window
impl Send for set_window
impl Sync for set_window
impl Unpin for set_window
impl UnsafeUnpin for set_window
impl UnwindSafe for set_window
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