(&self)
| 17 | |
| 18 | impl WriteTxn<'_> { |
| 19 | pub fn kg_project(&self) -> PristineResult<ProjectId> { |
| 20 | self.project_identity()? |
| 21 | .ok_or(PristineError::MissingProjectIdentity)? |
| 22 | .project_id() |
| 23 | .map_err(|e| PristineError::Serialization { |
| 24 | message: e.to_string(), |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | /// Resolve a plan through authoritative manifest identity; a raw label is |
| 29 | /// insufficient evidence to invent a canonical intent resource. |