Module parse_mediawiki_sql::field_types[][src]

Expand description

The types used in the schemas module.

Implements the FromSql trait for them. Re-exports the Datelike and Timelike traits from the chrono crate, which are used by Timestamp.

Structs

Represents actor_id, the primary key of the actor table.

Represents cat_id, the primary key of the category table.

Represents ctd_id, the primary key of the change_tag_def table.

Represents ct_id, the primary key of the change_tag table.

Represents comment_id, the primary key of the comment table.

Represents el_id, the primary key of the externallinks table.

Represents a page title with namespace and with spaces rather than underscores, as in the ll_title field of the langlinks table.

Represents log_id, the primary key of the logging table.

Represents the img_minor_mime field of the image table.

The type that Timestamp derefs to, from chrono.

The type used for float fields that are never NaN.

Represents cat_pages, cat_subcats, and cat_files fields of the category table. They should logically be greater than or equal to 0, but because of errors can be negative.

Represents page_id, the primary key of the page table, as well as other fields in other tables that correspond to it.

Represents the page_namespace field of the page table.

Represents pr_id, the primary key of the page_restrictions table.

Represents page_restrictions, an outdated field of the page table containing a string representing a map from action to the groups that are allowed to perform that action.

Represents the page_title field of the page table, a title with underscores.

Represents rc_id, the primary key of the recentchanges table.

Represents rev_id, the primary key of the revision table.

Represents a SHA-1 hash in base 36, for instance in the img_sha1 field of the image table.

A timestamp, represented as a string in the format 'yyyymmddhhmmss' or 'yyyy-mm-dd hh:mm::ss'. Provides the methods of NaiveDateTime through Deref.

Represents the name of a user group, such as the ug_group field of the user_groups table.

Represents user_id, the primary key of the user table.

Enums

Represents the page_content_model field of the page table.

Represents the pr_expiry field of the page_restrictions table.

Represents the img_major_mime field of the image table.

Represents the img_media_type field of the image table.

Represents the pr_type field of the page_restrictions table, the action that is restricted.

Represents the cl_type field of the categorylinks table.

Represents the pr_level field of the page_restrictions table, the group that is allowed to perform the action.

Traits

Trait for Timestamp, re-exported from chrono.

Trait for Timestamp, re-exported from chrono.