pub struct CreateServiceRequest<'a> {
pub auto_deploy: Option<String>,
pub branch: Option<String>,
pub env_vars: Option<Vec<Value>>,
pub name: Option<String>,
pub owner_id: Option<String>,
pub repo: Option<String>,
pub secret_files: Option<Vec<Value>>,
pub service_details: Option<Value>,
pub type_: Option<String>,
/* private fields */
}
Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§auto_deploy: Option<String>
§branch: Option<String>
§env_vars: Option<Vec<Value>>
§name: Option<String>
§owner_id: Option<String>
§repo: Option<String>
§secret_files: Option<Vec<Value>>
§service_details: Option<Value>
§type_: Option<String>
Implementations§
Source§impl<'a> CreateServiceRequest<'a>
impl<'a> CreateServiceRequest<'a>
pub async fn send(self) -> InMemoryResult<Value>
pub fn auto_deploy(self, auto_deploy: &str) -> Self
pub fn branch(self, branch: &str) -> Self
pub fn env_vars(self, env_vars: Vec<Value>) -> Self
pub fn name(self, name: &str) -> Self
pub fn owner_id(self, owner_id: &str) -> Self
pub fn repo(self, repo: &str) -> Self
pub fn secret_files(self, secret_files: Vec<Value>) -> Self
pub fn service_details(self, service_details: Value) -> Self
pub fn type_(self, type_: &str) -> Self
Trait Implementations§
Source§impl<'a> Clone for CreateServiceRequest<'a>
impl<'a> Clone for CreateServiceRequest<'a>
Source§fn clone(&self) -> CreateServiceRequest<'a>
fn clone(&self) -> CreateServiceRequest<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> IntoFuture for CreateServiceRequest<'a>
impl<'a> IntoFuture for CreateServiceRequest<'a>
Source§type Output = Result<Value, Error<Response<InMemoryBody>>>
type Output = Result<Value, Error<Response<InMemoryBody>>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateServiceRequest<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateServiceRequest<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for CreateServiceRequest<'a>
impl<'a> !RefUnwindSafe for CreateServiceRequest<'a>
impl<'a> Send for CreateServiceRequest<'a>
impl<'a> Sync for CreateServiceRequest<'a>
impl<'a> Unpin for CreateServiceRequest<'a>
impl<'a> !UnwindSafe for CreateServiceRequest<'a>
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