pub struct CreateHintsOptions { /* private fields */ }Expand description
A builder for options for Client::create_hints_with_options.
Implementations§
Source§impl CreateHintsOptions
impl CreateHintsOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a CreateHintsOptions with all default option values.
Sourcepub fn slot(self, slot: u32) -> Self
pub fn slot(self, slot: u32) -> Self
Sets the slot number for which the hints should be created. This is the slot whose world contains the locations being hinted.
By default, this is the current player’s slot
Sourcepub fn status(self, status: HintStatus) -> Self
pub fn status(self, status: HintStatus) -> Self
Sets the status for the newly-created hint.
By default, this is HintStatus::Unspecified.
Trait Implementations§
Source§impl Clone for CreateHintsOptions
impl Clone for CreateHintsOptions
Source§fn clone(&self) -> CreateHintsOptions
fn clone(&self) -> CreateHintsOptions
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 CreateHintsOptions
impl Debug for CreateHintsOptions
Source§impl Default for CreateHintsOptions
impl Default for CreateHintsOptions
Source§fn default() -> CreateHintsOptions
fn default() -> CreateHintsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateHintsOptions
impl RefUnwindSafe for CreateHintsOptions
impl Send for CreateHintsOptions
impl Sync for CreateHintsOptions
impl Unpin for CreateHintsOptions
impl UnsafeUnpin for CreateHintsOptions
impl UnwindSafe for CreateHintsOptions
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