Struct ListTypefacesRequest
pub struct ListTypefacesRequest {
pub flags: Option<ListTypefacesFlags>,
pub family: Option<FamilyName>,
pub slant: Option<SlantRange>,
pub weight: Option<WeightRange>,
pub width: Option<WidthRange>,
pub languages: Option<Vec<LocaleId>>,
pub code_points: Option<Vec<u32>>,
pub generic_family: Option<GenericFontFamily>,
/* private fields */
}
Expand description
Query parameters for ListTypefaces
. Results must match all included
fields. All fields are optional; omitted fields will match any font.
Fields§
§flags: Option<ListTypefacesFlags>
Optional flags to modify matching behavior. Ignored if no other fields are set.
family: Option<FamilyName>
The name or alias of a font family. By default, families whose name
exactly matches family
. For substring matching, set the request’s
MATCH_FAMILY_NAME_SUBSTRING
flag.
slant: Option<SlantRange>
Results must have a slant within this inclusive range.
weight: Option<WeightRange>
Results must have a weight within this inclusive range.
width: Option<WidthRange>
Results must have a width within this inclusive range.
languages: Option<Vec<LocaleId>>
Languages that results must support. Each result must support all requested languages.
code_points: Option<Vec<u32>>
Code points that results must include. Each result must include all requested code points.
generic_family: Option<GenericFontFamily>
Generic font family which results must belong to. If a font’s generic family is not set, it will only be matched if this field is also not set. However, omitting this field will still cause it to match any font.
Trait Implementations§
§impl Clone for ListTypefacesRequest
impl Clone for ListTypefacesRequest
§fn clone(&self) -> ListTypefacesRequest
fn clone(&self) -> ListTypefacesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ListTypefacesRequest
impl Debug for ListTypefacesRequest
§impl<D> Decode<ListTypefacesRequest, D> for ListTypefacesRequestwhere
D: ResourceDialect,
impl<D> Decode<ListTypefacesRequest, D> for ListTypefacesRequestwhere
D: ResourceDialect,
§fn new_empty() -> ListTypefacesRequest
fn new_empty() -> ListTypefacesRequest
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for ListTypefacesRequest
impl Default for ListTypefacesRequest
§fn default() -> ListTypefacesRequest
fn default() -> ListTypefacesRequest
§impl<D> Encode<ListTypefacesRequest, D> for &ListTypefacesRequestwhere
D: ResourceDialect,
impl<D> Encode<ListTypefacesRequest, D> for &ListTypefacesRequestwhere
D: ResourceDialect,
§impl PartialEq for ListTypefacesRequest
impl PartialEq for ListTypefacesRequest
§impl TypeMarker for ListTypefacesRequest
impl TypeMarker for ListTypefacesRequest
§type Owned = ListTypefacesRequest
type Owned = ListTypefacesRequest
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for ListTypefacesRequest
impl ValueTypeMarker for ListTypefacesRequest
§type Borrowed<'a> = &'a ListTypefacesRequest
type Borrowed<'a> = &'a ListTypefacesRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ListTypefacesRequest as TypeMarker>::Owned,
) -> <ListTypefacesRequest as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ListTypefacesRequest as TypeMarker>::Owned, ) -> <ListTypefacesRequest as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.