pub struct PveBuilder { /* private fields */ }Expand description
Constructs a Pve struct.
The api_token and base_url are required or a BuildError will be made.
Implementations§
Source§impl PveBuilder
impl PveBuilder
pub fn user_agent<S: Into<String>>(self, value: S) -> Self
Source§impl PveBuilder
impl PveBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs PveBuilder with defaults (All defaults)
Sourcepub fn build(self) -> Result<Pve, BuildError>
pub fn build(self) -> Result<Pve, BuildError>
Run this at the end of the chain to build a Pve.
Minimum required set values: Self::api_token, Self::base_url
Trait Implementations§
Source§impl Debug for PveBuilder
impl Debug for PveBuilder
Source§impl Default for PveBuilder
impl Default for PveBuilder
Source§fn default() -> PveBuilder
fn default() -> PveBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PveBuilder
impl RefUnwindSafe for PveBuilder
impl Send for PveBuilder
impl Sync for PveBuilder
impl Unpin for PveBuilder
impl UnsafeUnpin for PveBuilder
impl UnwindSafe for PveBuilder
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