Insert or update a generic named object with an application-owned scope.
(
&self,
object_type: &str,
id: &str,
name: &str,
scope: &str,
payload: &[u8],
labels: Option<&str>,
)
| 263 | |
| 264 | /// Insert or update a generic named object with an application-owned scope. |
| 265 | pub async fn put_scoped( |
| 266 | &self, |
| 267 | object_type: &str, |
| 268 | id: &str, |
| 269 | name: &str, |
| 270 | scope: &str, |
| 271 | payload: &[u8], |
| 272 | labels: Option<&str>, |
| 273 | ) -> PersistenceResult<()> { |
| 274 | store_dispatch!(self.put_scoped(object_type, id, name, scope, payload, labels)) |
| 275 | } |
| 276 | |
| 277 | /// Fetch an object by id. |
| 278 | pub async fn get( |