pub fn patch(
        &self,
        name: &str,
        pp: &PatchParams,
        patch: Vec<u8>,
    ) -> Result<http::Request<Vec<u8>>> {
        pp.validate()?;
        let base_url = self.make_url() + "/" + name + "?";
        let mut qp = url::form_urlencoded::Serializer::new(base_url);
        pp.populate_qp(&mut qp);
        let urlstr = qp.finish();

        http::Request::patch(urlstr)
            .header("Accept", "application/json")
            .header("Content-Type", pp.patch_strategy.to_string())
            .body(patch)
            .map_err(Error::HttpError)
    }
/// Patch an instance of a resource
///
/// Requires a serialized merge-patch+json at the moment.
Patch an instance of a resource
Requires a serialized merge-patch+json at the moment.
Patch an instance of a resource Requires a serialized merge - patch + json at the moment .
pub fn patch(
        &self,
        name: &str,
        pp: &PatchParams,
        patch: Vec<u8>,
    ) -> Result<http::Request<Vec<u8>>> {
        pp.validate()?;
        let base_url = self.make_url() + "/" + name + "?";
        let mut qp = url::form_urlencoded::Serializer::new(base_url);
        pp.populate_qp(&mut qp);
        let urlstr = qp.finish();
        http::Request::patch(urlstr)
            .header("Accept", "application/json")
            .header("Content-Type", pp.patch_strategy.to_string())
            .body(patch)
            .map_err(Error::HttpError)
    }
pub fn patch ( & self , name : & str , pp : & PatchParams , patch : Vec < u8 > , ) -> Result < http :: Request < Vec < u8 > > > { pp . validate ( ) ? ; let base_url = self . make_url ( ) + " " + name + " " ; let mut qp = url :: form_urlencoded :: Serializer :: new ( base_url ) ; pp . populate_qp ( & mut qp ) ; let urlstr = qp . finish ( ) ; http :: Request :: patch ( urlstr ) . header ( " " , " " ) . header ( " " , pp . patch_strategy . to_string ( ) ) . body ( patch ) . map_err ( Error :: HttpError ) }
Patch an instance of a resource
Requires a serialized merge-patch+json at the moment.
Patch an instance of a resource Requires a serialized merge - patch + json at the moment .
&self
name
&str
pp
&PatchParams
patch
Vec<u8>