Module field

Module field 

Source
Expand description

Defines the field enums used for type-safe field selection in API requests.

This module contains enums that represent the data fields available for different Wattpad API objects (e.g., StoryField, UserField). Using these enums ensures that only valid fields can be requested from the API.

It also provides traits to manage default fields and authentication requirements.

Enums§

LanguageField
Represents the fields that can be requested for a Language object from the Wattpad API.
PartContentField
Represents the fields that can be requested for a PartContent object from the Wattpad API.
PartField
Represents the fields that can be requested for a Part object from the Wattpad API.
PartReferenceField
Represents the fields for a PartReference object.
PartStubField
Represents the fields for a PartStub object.
StoryField
Represents the fields that can be requested for a Story object from the Wattpad API.
TextUrlField
Represents the sub-fields for a text_url object.
UserField
Represents the fields that can be requested for a User object from the Wattpad API.
UserStubField
Represents the fields for a UserStub object.

Traits§

AuthRequiredFields
A trait to identify which fields in an enum require user authentication.
DefaultableFields
A trait for field enums that can provide a default set of fields.