Skip to content

Commit 5e709d4

Browse files
committed
add comment to Mutation
1 parent f20ab0f commit 5e709d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ pub struct HttpServer {
591591
custom_responders: HashMap<&'static str, Box<dyn Send + Fn(&Request, &HttpServer) -> Response>>,
592592
}
593593

594+
/// A helper struct that collects the arguments for [HttpServer::check_authorized].
595+
/// Based on looking at the request, these are the fields that the authentication header should attest to.
594596
pub struct Mutation<'a> {
595597
pub mutation: &'a str,
596598
pub name: Option<&'a str>,

0 commit comments

Comments
 (0)