pub trait AbstractResponse: ModuleIdentification {
    // Provided methods
    fn tag_response(
        &self,
        response: Response,
        action: impl Into<String>
    ) -> Response { ... }
    fn custom_tag_response(
        &self,
        response: Response,
        action: impl Into<String>,
        attributes: impl IntoIterator<Item = impl Into<Attribute>>
    ) -> Response { ... }
}
Expand description

Wrap a Response with an abstract-specific event. The event contains the contract name and the action, and any additional attributes.

Provided Methods§

source

fn tag_response( &self, response: Response, action: impl Into<String> ) -> Response

Respond with an abstract-specific event that contains the contract name and the action.

source

fn custom_tag_response( &self, response: Response, action: impl Into<String>, attributes: impl IntoIterator<Item = impl Into<Attribute>> ) -> Response

.tag_response() with additional attributes.

Implementors§