pub struct CreateInstanceBuilder { /* private fields */ }
Expand description
Builder struct for creating instances.
A detailed documentation can be found at https://developers.upcloud.com/1.3/8-servers/#create-server
Implementations§
Source§impl CreateInstanceBuilder
impl CreateInstanceBuilder
pub fn new<S1, S2, S3, S4, S5>( api: UpcloudApi, region_id: S1, plan_id: S2, os_id: S3, title: S4, hostname: S5, ) -> Self
Sourcepub fn user_data<S>(self, user_data: S) -> Self
pub fn user_data<S>(self, user_data: S) -> Self
The user-supplied, base64 encoded user data to attach to this instance.
pub async fn run_async(self) -> Result<UpcloudServer, UpcloudError>
Auto Trait Implementations§
impl Freeze for CreateInstanceBuilder
impl RefUnwindSafe for CreateInstanceBuilder
impl Send for CreateInstanceBuilder
impl Sync for CreateInstanceBuilder
impl Unpin for CreateInstanceBuilder
impl UnwindSafe for CreateInstanceBuilder
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