pub enum LanguageField {
Id,
Name,
}Expand description
Represents the fields that can be requested for a Language object from the Wattpad API.
Variants§
Id
The unique numerical identifier of the language.
Name
The full name of the language (e.g., “English”).
Trait Implementations§
Source§impl AuthRequiredFields for LanguageField
impl AuthRequiredFields for LanguageField
Source§fn auth_required_fields() -> Vec<Self>
fn auth_required_fields() -> Vec<Self>
Returns a vector of enum variants that require authentication. Read more
Source§fn auth_required(&self) -> bool
fn auth_required(&self) -> bool
Checks if a specific field instance requires authentication. Read more
Source§impl Clone for LanguageField
impl Clone for LanguageField
Source§fn clone(&self) -> LanguageField
fn clone(&self) -> LanguageField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageField
impl Debug for LanguageField
Source§impl DefaultableFields for LanguageField
impl DefaultableFields for LanguageField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
Returns a vector of the enum’s variants that should be used as the default.
Source§impl Display for LanguageField
impl Display for LanguageField
Source§impl Hash for LanguageField
impl Hash for LanguageField
Source§impl IntoEnumIterator for LanguageField
impl IntoEnumIterator for LanguageField
Source§impl Ord for LanguageField
impl Ord for LanguageField
Source§fn cmp(&self, other: &LanguageField) -> Ordering
fn cmp(&self, other: &LanguageField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LanguageField
impl PartialEq for LanguageField
Source§impl PartialOrd for LanguageField
impl PartialOrd for LanguageField
impl Copy for LanguageField
impl Eq for LanguageField
impl StructuralPartialEq for LanguageField
Auto Trait Implementations§
impl Freeze for LanguageField
impl RefUnwindSafe for LanguageField
impl Send for LanguageField
impl Sync for LanguageField
impl Unpin for LanguageField
impl UnwindSafe for LanguageField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.