Determine if an Activity exists in this [Workflow].
(&self, activity: A)
| 380 | |
| 381 | /// Determine if an Activity exists in this [Workflow]. |
| 382 | pub fn contains<A: BnStrCompatible>(&self, activity: A) -> bool { |
| 383 | unsafe { |
| 384 | BNWorkflowContains( |
| 385 | self.handle.as_ptr(), |
| 386 | activity.into_bytes_with_nul().as_ref().as_ptr() as *const c_char, |
| 387 | ) |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | /// Retrieve the configuration as an adjacency list in JSON for the [Workflow]. |
| 392 | pub fn configuration(&self) -> BnString { |
no test coverage detected