{"id":126242,"date":"2024-03-24T21:46:05","date_gmt":"2024-03-24T12:46:05","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-26T20:40:45","modified_gmt":"2024-03-26T11:40:45","slug":"actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u307e\u305a\u3001actix-web \u3068 actix-identity \u3092 Cargo.toml \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002[dependencies] \u30bb\u30af\u30b7\u30e7\u30f3\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-attr\">actix-web<\/span> = <span class=\"hljs-string\">\"3.3.2\"<\/span>\r\n<span class=\"hljs-attr\">actix-identity<\/span> = <span class=\"hljs-string\">\"0.5.0\"<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>main.rs\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">use<\/span> actix_web::{web, App, HttpResponse, HttpServer};\r\n<span class=\"hljs-keyword\">use<\/span> actix_identity::{CookieIdentityPolicy, Identity, IdentityService};\r\n<span class=\"hljs-keyword\">use<\/span> rand::Rng;\r\n<span class=\"hljs-keyword\">use<\/span> std::collections::HashMap;\r\n<span class=\"hljs-keyword\">async<\/span> <span class=\"hljs-keyword\">fn<\/span> <span class=\"hljs-title function_\">login<\/span>(identity: Identity) <span class=\"hljs-punctuation\">-&gt;<\/span> HttpResponse {\r\n<span class=\"hljs-comment\">\/\/ \u5c06\u7528\u6237\u6807\u8bc6\u8bbe\u7f6e\u4e3a\u4efb\u610f\u503c<\/span>\r\nidentity.<span class=\"hljs-title function_ invoke__\">remember<\/span>(<span class=\"hljs-string\">\"user_id\"<\/span>.<span class=\"hljs-title function_ invoke__\">to_owned<\/span>());\r\nHttpResponse::<span class=\"hljs-title function_ invoke__\">Ok<\/span>().<span class=\"hljs-title function_ invoke__\">body<\/span>(<span class=\"hljs-string\">\"Logged in successfully\"<\/span>)\r\n}\r\n<span class=\"hljs-keyword\">async<\/span> <span class=\"hljs-keyword\">fn<\/span> <span class=\"hljs-title function_\">logout<\/span>(identity: Identity) <span class=\"hljs-punctuation\">-&gt;<\/span> HttpResponse {\r\n<span class=\"hljs-comment\">\/\/ \u5c06\u7528\u6237\u6807\u8bc6\u8bbe\u7f6e\u4e3aNone<\/span>\r\nidentity.forget();\r\nHttpResponse::<span class=\"hljs-title function_ invoke__\">Ok<\/span>().<span class=\"hljs-title function_ invoke__\">body<\/span>(<span class=\"hljs-string\">\"Logged out successfully\"<\/span>)\r\n}\r\n<span class=\"hljs-keyword\">async<\/span> <span class=\"hljs-keyword\">fn<\/span> <span class=\"hljs-title function_\">protected_route<\/span>(identity: Identity) <span class=\"hljs-punctuation\">-&gt;<\/span> HttpResponse {\r\n<span class=\"hljs-comment\">\/\/ \u68c0\u67e5\u7528\u6237\u662f\u5426\u5df2\u767b\u5f55<\/span>\r\n<span class=\"hljs-keyword\">if<\/span> <span class=\"hljs-keyword\">let<\/span> <span class=\"hljs-variable\">Some<\/span>(user_id) = identity.<span class=\"hljs-title function_ invoke__\">identity<\/span>() {\r\nHttpResponse::<span class=\"hljs-title function_ invoke__\">Ok<\/span>().<span class=\"hljs-title function_ invoke__\">body<\/span>(<span class=\"hljs-built_in\">format!<\/span>(<span class=\"hljs-string\">\"Protected route, user_id: {}\"<\/span>, user_id))\r\n} <span class=\"hljs-keyword\">else<\/span> {\r\nHttpResponse::<span class=\"hljs-title function_ invoke__\">Unauthorized<\/span>().<span class=\"hljs-title function_ invoke__\">body<\/span>(<span class=\"hljs-string\">\"Unauthorized\"<\/span>)\r\n}\r\n}\r\n<span class=\"hljs-meta\">#[actix_web::main]<\/span>\r\n<span class=\"hljs-keyword\">async<\/span> <span class=\"hljs-keyword\">fn<\/span> <span class=\"hljs-title function_\">main<\/span>() <span class=\"hljs-punctuation\">-&gt;<\/span> std::io::<span class=\"hljs-type\">Result<\/span>&lt;()&gt; {\r\nHttpServer::<span class=\"hljs-title function_ invoke__\">new<\/span>(|| {\r\nApp::<span class=\"hljs-title function_ invoke__\">new<\/span>()\r\n<span class=\"hljs-comment\">\/\/ \u8bbe\u7f6e\u8eab\u4efd\u9a8c\u8bc1\u670d\u52a1<\/span>\r\n.<span class=\"hljs-title function_ invoke__\">wrap<\/span>(IdentityService::<span class=\"hljs-title function_ invoke__\">new<\/span>(\r\nCookieIdentityPolicy::<span class=\"hljs-title function_ invoke__\">new<\/span>(&amp;[<span class=\"hljs-number\">0<\/span>; <span class=\"hljs-number\">32<\/span>])\r\n.<span class=\"hljs-title function_ invoke__\">name<\/span>(<span class=\"hljs-string\">\"auth-cookie\"<\/span>)\r\n.<span class=\"hljs-title function_ invoke__\">secure<\/span>(<span class=\"hljs-literal\">false<\/span>), <span class=\"hljs-comment\">\/\/ \u5728\u5f00\u53d1\u73af\u5883\u4e2d\u8bbe\u4e3afalse<\/span>\r\n))\r\n.<span class=\"hljs-title function_ invoke__\">route<\/span>(<span class=\"hljs-string\">\"\/login\"<\/span>, web::<span class=\"hljs-title function_ invoke__\">post<\/span>().<span class=\"hljs-title function_ invoke__\">to<\/span>(login))\r\n.<span class=\"hljs-title function_ invoke__\">route<\/span>(<span class=\"hljs-string\">\"\/logout\"<\/span>, web::<span class=\"hljs-title function_ invoke__\">post<\/span>().<span class=\"hljs-title function_ invoke__\">to<\/span>(logout))\r\n.<span class=\"hljs-title function_ invoke__\">route<\/span>(<span class=\"hljs-string\">\"\/protected\"<\/span>, web::<span class=\"hljs-title function_ invoke__\">get<\/span>().<span class=\"hljs-title function_ invoke__\">to<\/span>(protected_route))\r\n})\r\n.<span class=\"hljs-title function_ invoke__\">bind<\/span>(<span class=\"hljs-string\">\"127.0.0.1:8080\"<\/span>)?\r\n.<span class=\"hljs-title function_ invoke__\">run<\/span>()\r\n.<span class=\"hljs-keyword\">await<\/span>\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30013\u3064\u306e\u30eb\u30fc\u30c8\uff08\/login\u3001\/logout\u3001\/protected\uff09\u3092\u542b\u3080\u5358\u7d14\u306a actix-web \u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\/login \u30eb\u30fc\u30c8\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u306b\u3001\/logout \u30eb\u30fc\u30c8\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a2\u30a6\u30c8\u306b\u4f7f\u7528\u3055\u308c\u3001\/protected \u30eb\u30fc\u30c8\u306f\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30a4\u30f3\u95a2\u6570\u3067\u306f\u3001IdentityService::new \u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u3067\u8a8d\u8a3c\u30b5\u30fc\u30d3\u30b9\u3092\u8a2d\u5b9a\u3057\u3001\u8a8d\u8a3c\u30dd\u30ea\u30b7\u30fc\u3068\u3057\u3066 CookieIdentityPolicy \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u300132 \u30d0\u30a4\u30c8\u306e\u30e9\u30f3\u30c0\u30e0\u5024\u3092\u6697\u53f7\u9375\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u8a8d\u8a3c\u60c5\u5831\u3092 Cookie \u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u95a2\u6570\u3067\u306f\u3001identity.remember\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30e6\u30fc\u30b6\u30fcID\u3092\u4efb\u610f\u306e\u5024\u306b\u8a2d\u5b9a\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u4e2d\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u30ed\u30b0\u30a2\u30a6\u30c8\u95a2\u6570\u3067\u306f\u3001identity.forget\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30e6\u30fc\u30b6\u30fcID\u3092None\u306b\u8a2d\u5b9a\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a2\u30a6\u30c8\u4e2d\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>protected_route \u95a2\u6570\u3067\u306f\u3001\u307e\u305a\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308c\u3070\u30e6\u30fc\u30b6\u30fc\u8b58\u5225\u5b50\u3092\u4f34\u3063\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u3001\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u306a\u3044\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30ab\u30fc\u30b4\u30e9\u30f3<\/li>\n<li>\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u65e5\u672c\u8a9e\u306b\u3068\u3089\u308f\u308c\u305a\u306b\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3092\u304a\u9858\u3044\u3057\u307e\u3059\u3002http:\/\/localhost:8080\/protected<\/li>\n<li>http:\/\/localhost:8080\/login \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>http:\/\/localhost:8080\/protected<\/li>\n<\/ol>\n<p>\u63d0\u793a\u306e\u30b3\u30fc\u30c9\u306f\u3042\u304f\u307e\u3067\u3001actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30c7\u30e2\u306e\u305f\u3081\u3001\u57fa\u672c\u7684\u306a\u4f8b\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3088\u308a\u8907\u96d1\u306a\u8a8d\u8a3c\u304a\u3088\u3073\u8a8d\u53ef\u306e\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u307e\u305a\u3001actix-web \u3068 actix-identity \u3092 Cargo.toml \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002[dependencie [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-126242","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u307e\u305a\u3001actix-web \u3068 actix-identity \u3092 Cargo.toml \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002[dependencie [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-24T12:46:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T11:40:45+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-24T12:46:05+00:00\",\"dateModified\":\"2024-03-26T11:40:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5","og_description":"Actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u307e\u305a\u3001actix-web \u3068 actix-identity \u3092 Cargo.toml \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002[dependencie [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-24T12:46:05+00:00","article_modified_time":"2024-03-26T11:40:45+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-24T12:46:05+00:00","dateModified":"2024-03-26T11:40:45+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"actix-web\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/actix-web%e3%81%a7%e4%bf%9d%e8%ad%b7%e3%81%95%e3%82%8c%e3%81%9f%e3%83%ab%e3%83%bc%e3%83%88%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/126242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=126242"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/126242\/revisions"}],"predecessor-version":[{"id":151901,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/126242\/revisions\/151901"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=126242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=126242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=126242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}