Skip to content

Backend struct structure? #163

Answered by maxcountryman
HosMercury asked this question in Q&A
Discussion options

You must be logged in to vote

I'm going to assume that's the Backend we define e.g. in users.rs from the SQLite example. If I'm right, then that is the definition of the user backend. In the SQLite example we use a struct to encapsulate the necessary things to authenticate and get a user from our user backend store (in this case, that's SQLite and in particular we need some way to talk to SQLite which is the pool, but it could be anything we like provided it can implement the AuthnBackend trait).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@HosMercury
Comment options

@HosMercury
Comment options

@maxcountryman
Comment options

Answer selected by HosMercury
@HosMercury
Comment options

@maxcountryman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants