pub async fn objects_post<S: Serialize + Debug, T: DeserializeOwned>(
    client: &ClientTestContext,
    collection_url: &str,
    input: S,
) -> T {
    let mut response = client
        .make_request(
            Method::POST,
            &collection_url,
            Some(input),
            StatusCode::CREATED,
        )
        .await
        .unwrap();
    read_json::<T>(&mut response).await
}
/**
 * Issues an HTTP POST to the specified collection URL to create an object.
 */
Issues an HTTP POST to the specified collection URL to create an object.
Issues an HTTP POST to the specified collection URL to create an object .
pub async fn objects_post<S: Serialize + Debug, T: DeserializeOwned>(
    client: &ClientTestContext,
    collection_url: &str,
    input: S,
) -> T {
    let mut response = client
        .make_request(
            Method::POST,
            &collection_url,
            Some(input),
            StatusCode::CREATED,
        )
        .await
        .unwrap();
    read_json::<T>(&mut response).await
}
pub async fn objects_post < S : Serialize + Debug , T : DeserializeOwned > ( client : & ClientTestContext , collection_url : & str , input : S , ) -> T { let mut response = client . make_request ( Method :: POST , & collection_url , Some ( input ) , StatusCode :: CREATED , ) . await . unwrap ( ) ; read_json :: < T > ( & mut response ) . await }
Issues an HTTP POST to the specified collection URL to create an object.
Issues an HTTP POST to the specified collection URL to create an object .
client
&ClientTestContext
collection_url
&str
input
S
client
&ClientTestContext
collection_url
&str
input
S