Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/actix/examples
/ AppState
Class
AppState
forms/form/src/main.rs:4–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
use serde::{Deserialize, Serialize};
3
4
struct AppState {
5
foo: String,
6
}
7
8
#[actix_web::main]
9
async fn main() -> std::io::Result<()> {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected