Struct postman_api::request::CreateRelationsRequest
source · [−]pub struct CreateRelationsRequest<'a> {
pub api_id: String,
pub api_version_id: String,
pub documentation: Option<Vec<String>>,
pub environment: Option<Vec<String>>,
pub mock: Option<Vec<String>>,
pub monitor: Option<Vec<String>>,
pub test: Option<Vec<String>>,
pub contracttest: Option<Vec<String>>,
pub testsuite: Option<Vec<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
api_id: String
api_version_id: String
documentation: Option<Vec<String>>
environment: Option<Vec<String>>
mock: Option<Vec<String>>
monitor: Option<Vec<String>>
test: Option<Vec<String>>
contracttest: Option<Vec<String>>
testsuite: Option<Vec<String>>
Implementations
sourceimpl<'a> CreateRelationsRequest<'a>
impl<'a> CreateRelationsRequest<'a>
pub async fn send(self) -> Result<Value>
pub fn documentation(
self,
documentation: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
pub fn environment(
self,
environment: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
pub fn mock(self, mock: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn monitor(self, monitor: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn test(self, test: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn contracttest(
self,
contracttest: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
pub fn testsuite(
self,
testsuite: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateRelationsRequest<'a>
impl<'a> Send for CreateRelationsRequest<'a>
impl<'a> Sync for CreateRelationsRequest<'a>
impl<'a> Unpin for CreateRelationsRequest<'a>
impl<'a> !UnwindSafe for CreateRelationsRequest<'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