MCPcopy Create free account

hub / github.com/DSpeckhals/bible.rs / functions

Functions66 in github.com/DSpeckhals/bible.rs

↓ 13 callersFunctionchapter_url
Generates a chapter URL for the given book and chapter.
web/src/responder/link.rs:28
↓ 7 callersMethodto_html
Convert the template data to HTML
web/src/responder/data.rs:176
↓ 6 callersFunctionpooled_conn
Checks out a pooled connection, mapping pool errors to `DbError::ConnectionPool`.
db/src/lib.rs:62
↓ 5 callersFunctionwith_service
(f: F)
web/src/test.rs:14
↓ 4 callersFunctionbook_url
Generates a book URL for the given book.
web/src/responder/link.rs:20
↓ 4 callersFunctionhtml_response
(uri: &str)
web/src/test.rs:111
↓ 3 callersFunctionbuild_pool
Builds a SQLite connection pool with the given URL.
db/src/lib.rs:48
↓ 3 callersFunctionestablish_connection
Establishes a non-pooled SQLite connection.
db/src/lib.rs:56
↓ 3 callersFunctionjson_response
(uri: &str)
web/src/test.rs:89
↓ 3 callersFunctionsearch
( data: web::Data<ServerData>, query: web::Query<SearchParams>, req: HttpRequest, )
web/src/controllers/api.rs:43
↓ 3 callersFunctiontest_book
()
web/src/test.rs:36
↓ 2 callersFunctionbook
Handles HTTP requests for a book (e.g. /John) Assume the path parameter is a Bible book, and get an HTML response that has book metadata and a list o
web/src/controllers/view.rs:37
↓ 2 callersFunctionparse_num
Parse a numeric chunk into an `i32`, surfacing the offending chunk in the error.
db/src/models/reference.rs:125
↓ 2 callersFunctionverse_url
Generates a verse URL from the given book, chapter, and verse.
web/src/responder/link.rs:37
↓ 1 callersFunctionall_books
Handles HTTP requests for a list of all books. Return an HTML page that lists all books in the Bible.
web/src/controllers/view.rs:25
↓ 1 callersFunctionbible_root_link
()
web/src/responder/meta.rs:16
↓ 1 callersFunctionprefetch_books
(conn: &mut SqliteConnection)
db/src/lib.rs:83
↓ 1 callersFunctionregister_templates
Registers the [Handlebars](handlebars.handlebars.html) templates for the application.
web/src/main.rs:32
↓ 1 callersFunctionrun_migrations
Run any pending Diesel migrations.
db/src/lib.rs:69
↓ 1 callersFunctionverse_range_url
Generates a URL for verses from the given book, chapter, and verse range.
web/src/responder/link.rs:46
Functionabout
Handles HTTP requests for the about page.
web/src/controllers/view.rs:16
Functionall
()
db/src/sword_drill.rs:189
Methodall_books
(_: &mut DbConnection)
web/src/test.rs:70
Methodall_books
(conn: &mut SqliteConnection)
db/src/sword_drill.rs:119
Methodbook
(_: &str, _: &mut DbConnection)
web/src/test.rs:66
Methodbook
(book_name: &str, conn: &mut SqliteConnection)
db/src/sword_drill.rs:98
Functionbook_data
()
web/src/responder/data.rs:214
Methodempty
Creates an empty search result list.
web/src/responder/data.rs:133
Methoderror_response
(&self)
web/src/error.rs:60
Functionfmt
()
db/src/models/reference.rs:136
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
db/src/models/reference.rs:19
Methodfor_about
()
web/src/responder/meta.rs:24
Methodfor_all_books
(links: &AllBooksLinks)
web/src/responder/meta.rs:44
Methodfor_book
(book: &Book, links: &BookLinks)
web/src/responder/meta.rs:56
Methodfor_error
()
web/src/responder/meta.rs:71
Methodfor_reference
(reference: &Reference, verses: &[Verse], links: &VersesLinks)
web/src/responder/meta.rs:80
Methodfor_search
(query: &str, url: &str)
web/src/responder/meta.rs:100
Methodfrom
(f: DbError)
web/src/error.rs:31
Methodfrom_error
Creates new error data from a (db.Error.html)
web/src/responder/data.rs:34
Methodfrom_sql
(bytes: DB::RawValue<'_>)
db/src/models/mod.rs:29
Functionfrom_str
()
db/src/models/reference.rs:163
Methodfrom_str
(s: &str)
db/src/models/reference.rs:52
Methodfrom_verses
Creates new search result data from standard verses.
web/src/responder/data.rs:150
Methodfrom_verses_fts
Creates new search result data from full text search verses.
web/src/responder/data.rs:138
Functioninvalid_url
(e: UrlGenerationError)
web/src/responder/link.rs:14
Functionmain
()
cli/src/main.rs:22
Functionmain
()
web/src/main.rs:60
Methodnew
(id: String, kind: Kind, name: String, url: String)
web/src/responder/json_ld.rs:98
Methodnew
(url: &Url, label: String)
web/src/responder/link.rs:68
Methodnew
Create new error data with a message
web/src/responder/data.rs:27
Functionreference
Handles HTTP requests for references (e.g. /John/1/1). Parse the URL path for a string that would indicate a reference. If the path parses to a refer
web/src/controllers/view.rs:67
Functionreference
( data: web::Data<ServerData>, params: web::Path<(String,)>, req: HttpRequest, )
web/src/controllers/api.rs:15
Functionrobots_txt
()
web/src/main.rs:42
Functionsearch
Handle HTTP requests for a search HTML page. Return an HTML page with search results based on the `q` query parameter.
web/src/controllers/view.rs:112
Methodsearch
(_: &str, _: &mut DbConnection)
web/src/test.rs:74
Methodsearch
(query: &str, conn: &mut SqliteConnection)
db/src/sword_drill.rs:127
Functionsearch_result_data
()
web/src/responder/data.rs:227
Methodserialize
(&self, serializer: S)
web/src/responder/json_ld.rs:30
Functionservice_worker
()
web/src/main.rs:52
Functionsitemap_xml
()
web/src/main.rs:46
Functiontemplate_data
()
web/src/responder/data.rs:255
Functionurls_for_books
()
web/src/responder/link.rs:245
Functionurls_for_verses
()
web/src/responder/link.rs:287
Methodverses
( _: &Reference, _: VerseFormat, _: &mut DbConnection, )
web/src/test.rs:48
Methodverses
( reference: &Reference, format: VerseFormat, conn: &mut SqliteConnection, )
db/src/sword_drill.rs:56
Functionverses_data
()
web/src/responder/data.rs:193