pub struct StartupGrant {
pub id: String,
pub items: Vec<String>,
pub book: Option<String>,
pub command: Option<String>,
}Expand description
Grant items/books to every player once when they first join.
This is the Yog-side replacement for grant_patchi_book.json.
Fields§
§id: String§items: Vec<String>§book: Option<String>§command: Option<String>Implementations§
Source§impl StartupGrant
impl StartupGrant
Trait Implementations§
Source§impl Clone for StartupGrant
impl Clone for StartupGrant
Source§fn clone(&self) -> StartupGrant
fn clone(&self) -> StartupGrant
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 moreAuto Trait Implementations§
impl Freeze for StartupGrant
impl RefUnwindSafe for StartupGrant
impl Send for StartupGrant
impl Sync for StartupGrant
impl Unpin for StartupGrant
impl UnsafeUnpin for StartupGrant
impl UnwindSafe for StartupGrant
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