pub struct FieldSet<T: QueryField> { /* private fields */ }Implementations§
Source§impl<T: QueryField> FieldSet<T>
impl<T: QueryField> FieldSet<T>
pub const URL_QUERY_PARAM: &'static str = "fields"
pub fn from_raw<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = String>,
pub fn with_capacity(capacity: usize) -> Self
pub fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
pub fn extend_raw<I>(&mut self, iter: I)where
I: IntoIterator<Item = String>,
pub fn insert(&mut self, field: &T)
pub fn insert_raw(&mut self, field: &str)
pub fn into_url_query(self) -> UrlQueryParams
pub fn is_empty(&self) -> bool
pub fn join(self) -> String
pub fn remove(&mut self, field: &T) -> bool
pub fn reserve(&mut self, additional: usize)
pub fn shrink_to_fit(&mut self)
Trait Implementations§
Source§impl<T: QueryField> Default for FieldSet<T>
impl<T: QueryField> Default for FieldSet<T>
Source§impl From<&[CharacterField]> for FieldSet<CharacterField>
impl From<&[CharacterField]> for FieldSet<CharacterField>
Source§fn from(fields: &[CharacterField]) -> Self
fn from(fields: &[CharacterField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[CharacterField; N]> for FieldSet<CharacterField>
impl<const N: usize> From<&[CharacterField; N]> for FieldSet<CharacterField>
Source§fn from(fields: &[CharacterField; N]) -> Self
fn from(fields: &[CharacterField; N]) -> Self
Converts to this type from the input type.
Source§impl From<&[ProducerField]> for FieldSet<ProducerField>
impl From<&[ProducerField]> for FieldSet<ProducerField>
Source§fn from(fields: &[ProducerField]) -> Self
fn from(fields: &[ProducerField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[ProducerField; N]> for FieldSet<ProducerField>
impl<const N: usize> From<&[ProducerField; N]> for FieldSet<ProducerField>
Source§fn from(fields: &[ProducerField; N]) -> Self
fn from(fields: &[ProducerField; N]) -> Self
Converts to this type from the input type.
Source§impl From<&[ReleaseField]> for FieldSet<ReleaseField>
impl From<&[ReleaseField]> for FieldSet<ReleaseField>
Source§fn from(fields: &[ReleaseField]) -> Self
fn from(fields: &[ReleaseField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[ReleaseField; N]> for FieldSet<ReleaseField>
impl<const N: usize> From<&[ReleaseField; N]> for FieldSet<ReleaseField>
Source§fn from(fields: &[ReleaseField; N]) -> Self
fn from(fields: &[ReleaseField; N]) -> Self
Converts to this type from the input type.
Source§impl From<&[StaffField]> for FieldSet<StaffField>
impl From<&[StaffField]> for FieldSet<StaffField>
Source§fn from(fields: &[StaffField]) -> Self
fn from(fields: &[StaffField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[StaffField; N]> for FieldSet<StaffField>
impl<const N: usize> From<&[StaffField; N]> for FieldSet<StaffField>
Source§fn from(fields: &[StaffField; N]) -> Self
fn from(fields: &[StaffField; N]) -> Self
Converts to this type from the input type.
Source§impl From<&[TraitField]> for FieldSet<TraitField>
impl From<&[TraitField]> for FieldSet<TraitField>
Source§fn from(fields: &[TraitField]) -> Self
fn from(fields: &[TraitField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[TraitField; N]> for FieldSet<TraitField>
impl<const N: usize> From<&[TraitField; N]> for FieldSet<TraitField>
Source§fn from(fields: &[TraitField; N]) -> Self
fn from(fields: &[TraitField; N]) -> Self
Converts to this type from the input type.
Source§impl From<&[VisualNovelField]> for FieldSet<VisualNovelField>
impl From<&[VisualNovelField]> for FieldSet<VisualNovelField>
Source§fn from(fields: &[VisualNovelField]) -> Self
fn from(fields: &[VisualNovelField]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[VisualNovelField; N]> for FieldSet<VisualNovelField>
impl<const N: usize> From<&[VisualNovelField; N]> for FieldSet<VisualNovelField>
Source§fn from(fields: &[VisualNovelField; N]) -> Self
fn from(fields: &[VisualNovelField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[CharacterField; N]> for FieldSet<CharacterField>
impl<const N: usize> From<[CharacterField; N]> for FieldSet<CharacterField>
Source§fn from(fields: [CharacterField; N]) -> Self
fn from(fields: [CharacterField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[ProducerField; N]> for FieldSet<ProducerField>
impl<const N: usize> From<[ProducerField; N]> for FieldSet<ProducerField>
Source§fn from(fields: [ProducerField; N]) -> Self
fn from(fields: [ProducerField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[ReleaseField; N]> for FieldSet<ReleaseField>
impl<const N: usize> From<[ReleaseField; N]> for FieldSet<ReleaseField>
Source§fn from(fields: [ReleaseField; N]) -> Self
fn from(fields: [ReleaseField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[StaffField; N]> for FieldSet<StaffField>
impl<const N: usize> From<[StaffField; N]> for FieldSet<StaffField>
Source§fn from(fields: [StaffField; N]) -> Self
fn from(fields: [StaffField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[TraitField; N]> for FieldSet<TraitField>
impl<const N: usize> From<[TraitField; N]> for FieldSet<TraitField>
Source§fn from(fields: [TraitField; N]) -> Self
fn from(fields: [TraitField; N]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[VisualNovelField; N]> for FieldSet<VisualNovelField>
impl<const N: usize> From<[VisualNovelField; N]> for FieldSet<VisualNovelField>
Source§fn from(fields: [VisualNovelField; N]) -> Self
fn from(fields: [VisualNovelField; N]) -> Self
Converts to this type from the input type.
Source§impl From<CharacterField> for FieldSet<CharacterField>
impl From<CharacterField> for FieldSet<CharacterField>
Source§fn from(field: CharacterField) -> Self
fn from(field: CharacterField) -> Self
Converts to this type from the input type.
Source§impl<T: QueryField> From<FieldSet<T>> for UrlQueryParams
impl<T: QueryField> From<FieldSet<T>> for UrlQueryParams
Source§impl From<ProducerField> for FieldSet<ProducerField>
impl From<ProducerField> for FieldSet<ProducerField>
Source§fn from(field: ProducerField) -> Self
fn from(field: ProducerField) -> Self
Converts to this type from the input type.
Source§impl From<ReleaseField> for FieldSet<ReleaseField>
impl From<ReleaseField> for FieldSet<ReleaseField>
Source§fn from(field: ReleaseField) -> Self
fn from(field: ReleaseField) -> Self
Converts to this type from the input type.
Source§impl From<StaffField> for FieldSet<StaffField>
impl From<StaffField> for FieldSet<StaffField>
Source§fn from(field: StaffField) -> Self
fn from(field: StaffField) -> Self
Converts to this type from the input type.
Source§impl From<TraitField> for FieldSet<TraitField>
impl From<TraitField> for FieldSet<TraitField>
Source§fn from(field: TraitField) -> Self
fn from(field: TraitField) -> Self
Converts to this type from the input type.
Source§impl From<Vec<CharacterField>> for FieldSet<CharacterField>
impl From<Vec<CharacterField>> for FieldSet<CharacterField>
Source§fn from(fields: Vec<CharacterField>) -> Self
fn from(fields: Vec<CharacterField>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ProducerField>> for FieldSet<ProducerField>
impl From<Vec<ProducerField>> for FieldSet<ProducerField>
Source§fn from(fields: Vec<ProducerField>) -> Self
fn from(fields: Vec<ProducerField>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ReleaseField>> for FieldSet<ReleaseField>
impl From<Vec<ReleaseField>> for FieldSet<ReleaseField>
Source§fn from(fields: Vec<ReleaseField>) -> Self
fn from(fields: Vec<ReleaseField>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<StaffField>> for FieldSet<StaffField>
impl From<Vec<StaffField>> for FieldSet<StaffField>
Source§fn from(fields: Vec<StaffField>) -> Self
fn from(fields: Vec<StaffField>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<TraitField>> for FieldSet<TraitField>
impl From<Vec<TraitField>> for FieldSet<TraitField>
Source§fn from(fields: Vec<TraitField>) -> Self
fn from(fields: Vec<TraitField>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<VisualNovelField>> for FieldSet<VisualNovelField>
impl From<Vec<VisualNovelField>> for FieldSet<VisualNovelField>
Source§fn from(fields: Vec<VisualNovelField>) -> Self
fn from(fields: Vec<VisualNovelField>) -> Self
Converts to this type from the input type.
Source§impl From<VisualNovelField> for FieldSet<VisualNovelField>
impl From<VisualNovelField> for FieldSet<VisualNovelField>
Source§fn from(field: VisualNovelField) -> Self
fn from(field: VisualNovelField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for FieldSet<T>
impl<T> RefUnwindSafe for FieldSet<T>where
T: RefUnwindSafe,
impl<T> Send for FieldSet<T>where
T: Send,
impl<T> Sync for FieldSet<T>where
T: Sync,
impl<T> Unpin for FieldSet<T>where
T: Unpin,
impl<T> UnsafeUnpin for FieldSet<T>
impl<T> UnwindSafe for FieldSet<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more