Struct postman_api::request::CreateEnvironmentRequest
source · [−]pub struct CreateEnvironmentRequest<'a> {
pub workspace_id: Option<String>,
pub environment: Option<Value>,
/* 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
workspace_id: Option<String>
environment: Option<Value>
Implementations
sourceimpl<'a> CreateEnvironmentRequest<'a>
impl<'a> CreateEnvironmentRequest<'a>
pub async fn send(self) -> Result<Value>
pub fn workspace_id(self, workspace_id: &str) -> Self
pub fn environment(self, environment: Value) -> Self
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateEnvironmentRequest<'a>
impl<'a> Send for CreateEnvironmentRequest<'a>
impl<'a> Sync for CreateEnvironmentRequest<'a>
impl<'a> Unpin for CreateEnvironmentRequest<'a>
impl<'a> !UnwindSafe for CreateEnvironmentRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more