pub struct BDO {
pub sessionless: Sessionless,
/* private fields */
}Fields§
§sessionless: SessionlessImplementations§
Source§impl BDO
impl BDO
pub fn new(base_url: Option<String>, sessionless: Option<Sessionless>) -> Self
pub async fn create_user( &self, hash: &str, bdo: &Value, is_public: &bool, ) -> Result<BDOUser, Box<dyn Error>>
pub async fn update_bdo( &self, uuid: &str, hash: &str, bdo: &Value, is_public: &bool, ) -> Result<BDOUser, Box<dyn Error>>
pub async fn get_bdo( &self, uuid: &str, hash: &str, ) -> Result<BDOUser, Box<dyn Error>>
pub async fn get_public_bdo( &self, uuid: &str, hash: &str, pub_key: &str, ) -> Result<BDOUser, Box<dyn Error>>
pub async fn get_bases( &self, uuid: &str, hash: &str, ) -> Result<Value, Box<dyn Error>>
pub async fn save_bases( &self, uuid: &str, hash: &str, bases: &Bases, ) -> Result<Value, Box<dyn Error>>
pub async fn get_spellbooks( &self, uuid: &str, hash: &str, ) -> Result<Vec<Spellbook>, Box<dyn Error>>
pub async fn put_spellbook( &self, uuid: &str, hash: &str, spellbook: &Spellbook, ) -> Result<Vec<Spellbook>, Box<dyn Error>>
pub async fn delete_user( &self, uuid: &str, hash: &str, ) -> Result<SuccessResult, Box<dyn Error>>
pub async fn teleport( &self, uuid: &str, hash: &str, url: &str, ) -> Result<Value, Box<dyn Error>>
pub async fn get_bdo_by_emojicode( &self, emojicode: &str, ) -> Result<EmojicodeResponse, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for BDO
impl !RefUnwindSafe for BDO
impl Send for BDO
impl Sync for BDO
impl Unpin for BDO
impl !UnwindSafe for BDO
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