pub fn update_pomo<U, S>(&self, uuid: U, desc: S) -> Result<Pomo, Error>
        where U: Into<Uuid>, S: Into<String>
    {
        let url = format!("{}/{}", POMO_URL, uuid.into());
        let json = json!({
            "description": desc.into(),
        });

        self.patch(url.as_str(), &json)
    }
/// Request server to update an existed `Pomo`,
/// only allow to update the `description`.
Request server to update an existed `Pomo`,
only allow to update the `description`.
Request server to update an existed ` Pomo ` only allow to update the ` description ` .
pub fn update_pomo<U, S>(&self, uuid: U, desc: S) -> Result<Pomo, Error>
        where U: Into<Uuid>, S: Into<String>
    {
        let url = format!("{}/{}", POMO_URL, uuid.into());
        let json = json!({
            "description": desc.into(),
        });
        self.patch(url.as_str(), &json)
    }
pub fn update_pomo < U , S > ( & self , uuid : U , desc : S ) -> Result < Pomo , Error > where U : Into < Uuid > , S : Into < String > { let url = format ! ( " " POMO_URL uuid into ( ) ) ; let json = json ! ( { " " desc into ( ) } ) ; self . patch ( url . as_str ( ) , & json ) }
Request server to update an existed `Pomo`,
only allow to update the `description`.
Request server to update an existed ` Pomo ` only allow to update the ` description ` .
&self
uuid
U
desc
S
&self
uuid
U
desc
S