pub struct ActionCatalog {
pub templates: Vec<ActionTemplate>,
}Fields§
§templates: Vec<ActionTemplate>Implementations§
Source§impl ActionCatalog
impl ActionCatalog
pub fn with_defaults() -> Self
pub fn find(&self, id: &str) -> Option<&ActionTemplate>
pub fn templates_for_scope(&self, scope: ActionScope) -> Vec<&ActionTemplate>
pub fn resolve(&self, request: ActionRequest) -> Result<ResolvedAction>
pub fn resolve_with_lookup<F>( &self, request: ActionRequest, lookup: F, ) -> Result<ResolvedAction>
Trait Implementations§
Source§impl Clone for ActionCatalog
impl Clone for ActionCatalog
Source§fn clone(&self) -> ActionCatalog
fn clone(&self) -> ActionCatalog
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionCatalog
impl Debug for ActionCatalog
Source§impl Default for ActionCatalog
impl Default for ActionCatalog
Source§fn default() -> ActionCatalog
fn default() -> ActionCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionCatalog
impl<'de> Deserialize<'de> for ActionCatalog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActionCatalog
impl PartialEq for ActionCatalog
Source§impl Serialize for ActionCatalog
impl Serialize for ActionCatalog
impl Eq for ActionCatalog
impl StructuralPartialEq for ActionCatalog
Auto Trait Implementations§
impl Freeze for ActionCatalog
impl RefUnwindSafe for ActionCatalog
impl Send for ActionCatalog
impl Sync for ActionCatalog
impl Unpin for ActionCatalog
impl UnsafeUnpin for ActionCatalog
impl UnwindSafe for ActionCatalog
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