Skip to main content

VsResultQuery

Struct VsResultQuery 

Source
pub struct VsResultQuery {
Show 26 fields pub min_start_date: String, pub min_end_date: String, pub min_start_time: String, pub min_end_time: String, pub min_room: u32, pub min_turn: u32, pub max_start_date: String, pub max_end_date: String, pub max_start_time: String, pub max_end_time: String, pub max_room: u32, pub max_turn: u32, pub min_action_point: i32, pub min_item_point: i32, pub min_put_point: i32, pub min_put_damage: i32, pub min_total_point: i32, pub min_rem_turn: i32, pub min_get_turn: i32, pub max_action_point: i32, pub max_item_point: i32, pub max_put_point: i32, pub max_put_damage: i32, pub max_total_point: i32, pub max_rem_turn: i32, pub max_get_turn: i32,
}
Expand description

Query parameters for listvsresult.

Fields§

§min_start_date: String§min_end_date: String§min_start_time: String§min_end_time: String§min_room: u32§min_turn: u32§max_start_date: String§max_end_date: String§max_start_time: String§max_end_time: String§max_room: u32§max_turn: u32§min_action_point: i32§min_item_point: i32§min_put_point: i32§min_put_damage: i32§min_total_point: i32§min_rem_turn: i32§min_get_turn: i32§max_action_point: i32§max_item_point: i32§max_put_point: i32§max_put_damage: i32§max_total_point: i32§max_rem_turn: i32§max_get_turn: i32

Implementations§

Source§

impl VsResultQuery

Source

pub fn today() -> Self

Create a query covering today’s results (date computed at runtime).

FIX: Previously Default::default() used a hardcoded date string (“2026-04-07”) that needed manual updating every day. This method calls chrono::Local::now() so it is always correct.

Source

pub fn for_date(date: &str) -> Self

Create a query covering a specific date (format: “YYYY-MM-DD”).

Trait Implementations§

Source§

impl Clone for VsResultQuery

Source§

fn clone(&self) -> VsResultQuery

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VsResultQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VsResultQuery

Default now delegates to VsResultQuery::today() instead of using a hardcoded date, so existing code calling VsResultQuery::default() still compiles and works correctly.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more