pub struct CharacterBuilder { /* private fields */ }Implementations§
Source§impl CharacterBuilder
impl CharacterBuilder
pub fn new() -> Self
pub fn with_id(self, id: CharacterId) -> Self
pub fn with_user_id(self, id: Uuid) -> Self
pub fn with_power(self, power: i64) -> Self
pub fn with_max_vassal_slots_count(self, slots_count: i64) -> Self
pub fn with_arena_rating(self, rating: i64) -> Self
pub fn with_arena_stars(self, stars: i64) -> Self
pub fn with_character_level(self, level: i64) -> Self
pub fn with_arena_last_pvp_at(self, time: Option<DateTime<Utc>>) -> Self
pub fn with_last_boss_fight_won(self, won: bool) -> Self
pub fn with_cases(self, cases: i64) -> Self
pub fn with_item_case_level(self, level: i64) -> Self
pub fn with_class(self, class_id: Uuid) -> Self
pub fn with_custom_values(self, custom_values: CustomValuesMap) -> Self
pub fn with_ability_slot_levels(self, ability_slot_levels: Vec<i64>) -> Self
pub fn with_ability_gacha_wishlist( self, ability_gacha_wishlist: Vec<AbilityId>, ) -> Self
pub fn with_seed(self, seed: u64) -> Self
pub fn with_current_chapter_level(self, chapter_level: i64) -> Self
pub fn build(self) -> Character
Trait Implementations§
Source§impl Default for CharacterBuilder
impl Default for CharacterBuilder
Source§fn default() -> CharacterBuilder
fn default() -> CharacterBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CharacterBuilder
impl<'de> Deserialize<'de> for CharacterBuilder
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
Auto Trait Implementations§
impl Freeze for CharacterBuilder
impl RefUnwindSafe for CharacterBuilder
impl Send for CharacterBuilder
impl Sync for CharacterBuilder
impl Unpin for CharacterBuilder
impl UnwindSafe for CharacterBuilder
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