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§
- Language
Field - Represents the fields that can be requested for a
Languageobject from the Wattpad API. - Part
Content Field - Represents the fields that can be requested for a
PartContentobject from the Wattpad API. - Part
Field - Represents the fields that can be requested for a
Partobject from the Wattpad API. - Part
Reference Field - Represents the fields for a
PartReferenceobject. - Part
Stub Field - Represents the fields for a
PartStubobject. - Story
Field - Represents the fields that can be requested for a
Storyobject from the Wattpad API. - Text
UrlField - Represents the sub-fields for a
text_urlobject. - User
Field - Represents the fields that can be requested for a
Userobject from the Wattpad API. - User
Stub Field - Represents the fields for a
UserStubobject.
Traits§
- Auth
Required Fields - A trait to identify which fields in an enum require user authentication.
- Defaultable
Fields - A trait for field enums that can provide a default set of fields.