pub struct VkApiBuilder { /* private fields */ }Implementations§
Source§impl VkApiBuilder
impl VkApiBuilder
pub fn new() -> Self
pub fn token<T: Into<String>>(self, token: T) -> Self
pub fn version<T: Into<String>>(self, version: T) -> Self
pub fn timeout(self, timeout: u64) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
pub fn retry_delay(self, retry_delay: u64) -> Self
pub fn enable_logging(self, enable: bool) -> Self
pub fn endpoint<T: Into<String>>(self, endpoint: T) -> Self
pub fn build(self) -> VkResult<VkApi>
Trait Implementations§
Source§impl Debug for VkApiBuilder
impl Debug for VkApiBuilder
Source§impl Default for VkApiBuilder
impl Default for VkApiBuilder
Source§fn default() -> VkApiBuilder
fn default() -> VkApiBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VkApiBuilder
impl RefUnwindSafe for VkApiBuilder
impl Send for VkApiBuilder
impl Sync for VkApiBuilder
impl Unpin for VkApiBuilder
impl UnwindSafe for VkApiBuilder
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