Decodes the app_metadata stored in a [`PutResult`] as a [`DoPutPreparedStatementResult`] and then returns the inner prepared statement handle as [`Bytes`]
(&self, put_result: &PutResult)
| 600 | /// [`DoPutPreparedStatementResult`] and then returns |
| 601 | /// the inner prepared statement handle as [`Bytes`] |
| 602 | fn unpack_prepared_statement_handle(&self, put_result: &PutResult) -> Result<Option<Bytes>> { |
| 603 | let result: DoPutPreparedStatementResult = Message::decode(&*put_result.app_metadata)?; |
| 604 | Ok(result.prepared_statement_handle) |
| 605 | } |
| 606 | |
| 607 | /// Close the prepared statement, so that this PreparedStatement can not used |
| 608 | /// anymore and server can free up any resources. |
no test coverage detected