pub struct LobbyFilter {
pub strings: Vec<(String, String, Compare)>,
pub numbers: Vec<(String, i32, Compare)>,
pub near: Vec<(String, i32)>,
pub open_slots: Option<u8>,
pub distance: Option<Distance>,
pub count: Option<u32>,
}Fields§
§strings: Vec<(String, String, Compare)>§numbers: Vec<(String, i32, Compare)>§near: Vec<(String, i32)>§open_slots: Option<u8>§distance: Option<Distance>§count: Option<u32>Implementations§
Source§impl LobbyFilter
impl LobbyFilter
pub fn string(self, key: &str, value: &str, compare: Compare) -> Self
pub fn number(self, key: &str, value: i32, compare: Compare) -> Self
pub fn near(self, key: &str, value: i32) -> Self
pub fn open_slots(self, slots: u8) -> Self
pub fn distance(self, distance: Distance) -> Self
pub fn count(self, count: u32) -> Self
Trait Implementations§
Source§impl Clone for LobbyFilter
impl Clone for LobbyFilter
Source§fn clone(&self) -> LobbyFilter
fn clone(&self) -> LobbyFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LobbyFilter
impl Debug for LobbyFilter
Source§impl Default for LobbyFilter
impl Default for LobbyFilter
Source§fn default() -> LobbyFilter
fn default() -> LobbyFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for LobbyFilter
impl PartialEq for LobbyFilter
Source§fn eq(&self, other: &LobbyFilter) -> bool
fn eq(&self, other: &LobbyFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LobbyFilter
impl StructuralPartialEq for LobbyFilter
Auto Trait Implementations§
impl Freeze for LobbyFilter
impl RefUnwindSafe for LobbyFilter
impl Send for LobbyFilter
impl Sync for LobbyFilter
impl Unpin for LobbyFilter
impl UnsafeUnpin for LobbyFilter
impl UnwindSafe for LobbyFilter
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