MCPcopy Create free account
hub / github.com/actix/examples / create_invitation

Function create_invitation

auth/simple-auth-server/src/invitation_handler.rs:25–31  ·  view source on GitHub ↗
(
    eml: String,
    pool: web::Data<Pool>,
)

Source from the content-addressed store, hash-verified

23}
24
25fn create_invitation(
26 eml: String,
27 pool: web::Data<Pool>,
28) -> Result<(), crate::errors::ServiceError> {
29 let invitation = dbg!(query(eml, pool)?);
30 send_invitation(&invitation)
31}
32
33/// Diesel query
34fn query(eml: String, pool: web::Data<Pool>) -> Result<Invitation, crate::errors::ServiceError> {

Callers 1

post_invitationFunction · 0.85

Calls 1

send_invitationFunction · 0.85

Tested by

no test coverage detected