pub struct CollectiveEngine { /* private fields */ }Expand description
Workflow collective — community sharing of workflow patterns.
Implementations§
Source§impl CollectiveEngine
impl CollectiveEngine
pub fn new() -> Self
Share a workflow with the collective.
Sourcepub fn search(&self, query: &str) -> Vec<&CollectiveItem>
pub fn search(&self, query: &str) -> Vec<&CollectiveItem>
Search community workflows.
Sourcepub fn get(&self, id: &str) -> Option<&CollectiveItem>
pub fn get(&self, id: &str) -> Option<&CollectiveItem>
Get a collective item.
Sourcepub fn verify_privacy(&mut self, id: &str) -> bool
pub fn verify_privacy(&mut self, id: &str) -> bool
Verify no private data in a shared workflow.
Sourcepub fn list_all(&self) -> Vec<&CollectiveItem>
pub fn list_all(&self) -> Vec<&CollectiveItem>
List all shared items.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectiveEngine
impl RefUnwindSafe for CollectiveEngine
impl Send for CollectiveEngine
impl Sync for CollectiveEngine
impl Unpin for CollectiveEngine
impl UnsafeUnpin for CollectiveEngine
impl UnwindSafe for CollectiveEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more