Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “This means that we must alter the existing schema for the to-do item table and add a user schema to the src/schema.rs
file.”
A block of code is set as follows:
table! { to_do (id) { id -> Int4, title -> Varchar, status -> Varchar, date -> Timestamp, user_id -> Int4, } } table! { users (id) { id -> Int4, username -> Varchar, email -> Varchar, password -> Varchar, unique_id -> Varchar, } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
[default] exten => s,1,Dial(Zap/1|30) exten => s,2,Voicemail(u100) exten => s,102,Voicemail(b100) exten => i,1,Voicemail(s0)
Any command-line input or output is written as follows:
docker-compose up
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “If we press the Send button in Postman another two times before the initial 30 seconds is up, we get the following printout:”
Tips or important notes
Appear like this.