Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DSpeckhals/bible.rs
/ functions
Functions
66 in github.com/DSpeckhals/bible.rs
⨍
Functions
66
◇
Types & classes
47
↓ 13 callers
Function
chapter_url
Generates a chapter URL for the given book and chapter.
web/src/responder/link.rs:28
↓ 7 callers
Method
to_html
Convert the template data to HTML
web/src/responder/data.rs:176
↓ 6 callers
Function
pooled_conn
Checks out a pooled connection, mapping pool errors to `DbError::ConnectionPool`.
db/src/lib.rs:62
↓ 5 callers
Function
with_service
(f: F)
web/src/test.rs:14
↓ 4 callers
Function
book_url
Generates a book URL for the given book.
web/src/responder/link.rs:20
↓ 4 callers
Function
html_response
(uri: &str)
web/src/test.rs:111
↓ 3 callers
Function
build_pool
Builds a SQLite connection pool with the given URL.
db/src/lib.rs:48
↓ 3 callers
Function
establish_connection
Establishes a non-pooled SQLite connection.
db/src/lib.rs:56
↓ 3 callers
Function
json_response
(uri: &str)
web/src/test.rs:89
↓ 3 callers
Function
search
( data: web::Data<ServerData>, query: web::Query<SearchParams>, req: HttpRequest, )
web/src/controllers/api.rs:43
↓ 3 callers
Function
test_book
()
web/src/test.rs:36
↓ 2 callers
Function
book
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 callers
Function
parse_num
Parse a numeric chunk into an `i32`, surfacing the offending chunk in the error.
db/src/models/reference.rs:125
↓ 2 callers
Function
verse_url
Generates a verse URL from the given book, chapter, and verse.
web/src/responder/link.rs:37
↓ 1 callers
Function
all_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 callers
Function
bible_root_link
()
web/src/responder/meta.rs:16
↓ 1 callers
Function
prefetch_books
(conn: &mut SqliteConnection)
db/src/lib.rs:83
↓ 1 callers
Function
register_templates
Registers the [Handlebars](handlebars.handlebars.html) templates for the application.
web/src/main.rs:32
↓ 1 callers
Function
run_migrations
Run any pending Diesel migrations.
db/src/lib.rs:69
↓ 1 callers
Function
verse_range_url
Generates a URL for verses from the given book, chapter, and verse range.
web/src/responder/link.rs:46
Function
about
Handles HTTP requests for the about page.
web/src/controllers/view.rs:16
Function
all
()
db/src/sword_drill.rs:189
Method
all_books
(_: &mut DbConnection)
web/src/test.rs:70
Method
all_books
(conn: &mut SqliteConnection)
db/src/sword_drill.rs:119
Method
book
(_: &str, _: &mut DbConnection)
web/src/test.rs:66
Method
book
(book_name: &str, conn: &mut SqliteConnection)
db/src/sword_drill.rs:98
Function
book_data
()
web/src/responder/data.rs:214
Method
empty
Creates an empty search result list.
web/src/responder/data.rs:133
Method
error_response
(&self)
web/src/error.rs:60
Function
fmt
()
db/src/models/reference.rs:136
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
db/src/models/reference.rs:19
Method
for_about
()
web/src/responder/meta.rs:24
Method
for_all_books
(links: &AllBooksLinks)
web/src/responder/meta.rs:44
Method
for_book
(book: &Book, links: &BookLinks)
web/src/responder/meta.rs:56
Method
for_error
()
web/src/responder/meta.rs:71
Method
for_reference
(reference: &Reference, verses: &[Verse], links: &VersesLinks)
web/src/responder/meta.rs:80
Method
for_search
(query: &str, url: &str)
web/src/responder/meta.rs:100
Method
from
(f: DbError)
web/src/error.rs:31
Method
from_error
Creates new error data from a (db.Error.html)
web/src/responder/data.rs:34
Method
from_sql
(bytes: DB::RawValue<'_>)
db/src/models/mod.rs:29
Function
from_str
()
db/src/models/reference.rs:163
Method
from_str
(s: &str)
db/src/models/reference.rs:52
Method
from_verses
Creates new search result data from standard verses.
web/src/responder/data.rs:150
Method
from_verses_fts
Creates new search result data from full text search verses.
web/src/responder/data.rs:138
Function
invalid_url
(e: UrlGenerationError)
web/src/responder/link.rs:14
Function
main
()
cli/src/main.rs:22
Function
main
()
web/src/main.rs:60
Method
new
(id: String, kind: Kind, name: String, url: String)
web/src/responder/json_ld.rs:98
Method
new
(url: &Url, label: String)
web/src/responder/link.rs:68
Method
new
Create new error data with a message
web/src/responder/data.rs:27
Function
reference
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
Function
reference
( data: web::Data<ServerData>, params: web::Path<(String,)>, req: HttpRequest, )
web/src/controllers/api.rs:15
Function
robots_txt
()
web/src/main.rs:42
Function
search
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
Method
search
(_: &str, _: &mut DbConnection)
web/src/test.rs:74
Method
search
(query: &str, conn: &mut SqliteConnection)
db/src/sword_drill.rs:127
Function
search_result_data
()
web/src/responder/data.rs:227
Method
serialize
(&self, serializer: S)
web/src/responder/json_ld.rs:30
Function
service_worker
()
web/src/main.rs:52
Function
sitemap_xml
()
web/src/main.rs:46
Function
template_data
()
web/src/responder/data.rs:255
Function
urls_for_books
()
web/src/responder/link.rs:245
Function
urls_for_verses
()
web/src/responder/link.rs:287
Method
verses
( _: &Reference, _: VerseFormat, _: &mut DbConnection, )
web/src/test.rs:48
Method
verses
( reference: &Reference, format: VerseFormat, conn: &mut SqliteConnection, )
db/src/sword_drill.rs:56
Function
verses_data
()
web/src/responder/data.rs:193