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
Language
object from the Wattpad API. - Part
Content Field - Represents the fields that can be requested for a
PartContent
object from the Wattpad API. - Part
Field - Represents the fields that can be requested for a
Part
object from the Wattpad API. - Part
Reference Field - Represents the fields for a
PartReference
object. - Part
Stub Field - Represents the fields for a
PartStub
object. - Story
Field - Represents the fields that can be requested for a
Story
object from the Wattpad API. - Text
UrlField - Represents the sub-fields for a
text_url
object. - User
Field - Represents the fields that can be requested for a
User
object from the Wattpad API. - User
Stub Field - Represents the fields for a
UserStub
object.
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.