# define_resource in mcaptcha - Rust
Defines resoures for [Methods]
Keywords: rust, rustlang, rust-lang, define_resource

# Macro mcaptcha::define_resource
[−] [src]

    macro_rules! define_resource {
        ($cfg:expr, $path:expr, Methods::Get, $to:expr) => { ... };
        ($cfg:expr, $path:expr, Methods::Post, $to:expr) => { ... };
        ($cfg:expr, $path:expr, Methods::ProtectPost, $to:expr) => { ... };
        ($cfg:expr, $path:expr, Methods::ProtectGet, $to:expr) => { ... };
    }

Expand description

Defines resoures for Methods