pub struct FamilyProto {Show 25 fields
pub name: Option<String>,
pub designer: Option<String>,
pub license: Option<String>,
pub category: Vec<String>,
pub date_added: Option<String>,
pub fonts: Vec<FontProto>,
pub aliases: Vec<String>,
pub subsets: Vec<String>,
pub ttf_autohint_args: Option<String>,
pub axes: Vec<AxisSegmentProto>,
pub registry_default_overrides: HashMap<String, f32>,
pub source: MessageField<SourceProto>,
pub is_noto: Option<bool>,
pub languages: Vec<String>,
pub fallbacks: Vec<FamilyFallbackProto>,
pub sample_glyphs: HashMap<String, String>,
pub sample_text: MessageField<SampleTextProto>,
pub display_name: Option<String>,
pub ordered_sample_glyphs: Vec<GlyphGroupProto>,
pub minisite_url: Option<String>,
pub primary_script: Option<String>,
pub primary_language: Option<String>,
pub stroke: Option<String>,
pub classifications: Vec<String>,
pub special_fields: SpecialFields,
}Fields§
§name: Option<String>§designer: Option<String>§license: Option<String>§category: Vec<String>A mutually-exclusive category for each font. The categories are: Serif, Sans Serif, Display, Handwriting and Monospace. Being mutually exclusive is a significant deficiency as, for example, most Display fonts are typically Serif or Sans Serif and that is not captured.
For searching, this field is replaced by stroke and classifications (see below), however, this field persists (it’s required after all) and will continue to be populated in the onboarding process.
This is repeated field, yet Google Fonts only uses the last entry so multiple entries should be avoided.
date_added: Option<String>§fonts: Vec<FontProto>§aliases: Vec<String>§subsets: Vec<String>§ttf_autohint_args: Option<String>§axes: Vec<AxisSegmentProto>§registry_default_overrides: HashMap<String, f32>§source: MessageField<SourceProto>§is_noto: Option<bool>§languages: Vec<String>§fallbacks: Vec<FamilyFallbackProto>§sample_glyphs: HashMap<String, String>§sample_text: MessageField<SampleTextProto>§display_name: Option<String>§ordered_sample_glyphs: Vec<GlyphGroupProto>§minisite_url: Option<String>Optional url for more info about the font.
primary_script: Option<String>The script to use when picking sample text. See the Script spanner table.
primary_language: Option<String>§stroke: Option<String>Stroke of the letter forms: serif, sans serif, etc. Stroke is mutually exclusive. The values are the string names from the Stroke enum or the empty string.
classifications: Vec<String>A family’s broad classifications: display, handwriting, monospace, etc. The values are the string names from the Classification enum.
special_fields: SpecialFieldsImplementations§
Source§impl FamilyProto
impl FamilyProto
pub fn new() -> FamilyProto
pub fn name(&self) -> &str
pub fn clear_name(&mut self)
pub fn has_name(&self) -> bool
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
pub fn designer(&self) -> &str
pub fn clear_designer(&mut self)
pub fn has_designer(&self) -> bool
pub fn set_designer(&mut self, v: String)
pub fn mut_designer(&mut self) -> &mut String
pub fn take_designer(&mut self) -> String
pub fn license(&self) -> &str
pub fn clear_license(&mut self)
pub fn has_license(&self) -> bool
pub fn set_license(&mut self, v: String)
pub fn mut_license(&mut self) -> &mut String
pub fn take_license(&mut self) -> String
pub fn date_added(&self) -> &str
pub fn clear_date_added(&mut self)
pub fn has_date_added(&self) -> bool
pub fn set_date_added(&mut self, v: String)
pub fn mut_date_added(&mut self) -> &mut String
pub fn take_date_added(&mut self) -> String
pub fn ttf_autohint_args(&self) -> &str
pub fn clear_ttf_autohint_args(&mut self)
pub fn has_ttf_autohint_args(&self) -> bool
pub fn set_ttf_autohint_args(&mut self, v: String)
pub fn mut_ttf_autohint_args(&mut self) -> &mut String
pub fn take_ttf_autohint_args(&mut self) -> String
pub fn is_noto(&self) -> bool
pub fn clear_is_noto(&mut self)
pub fn has_is_noto(&self) -> bool
pub fn set_is_noto(&mut self, v: bool)
pub fn display_name(&self) -> &str
pub fn clear_display_name(&mut self)
pub fn has_display_name(&self) -> bool
pub fn set_display_name(&mut self, v: String)
pub fn mut_display_name(&mut self) -> &mut String
pub fn take_display_name(&mut self) -> String
pub fn minisite_url(&self) -> &str
pub fn clear_minisite_url(&mut self)
pub fn has_minisite_url(&self) -> bool
pub fn set_minisite_url(&mut self, v: String)
pub fn mut_minisite_url(&mut self) -> &mut String
pub fn take_minisite_url(&mut self) -> String
pub fn primary_script(&self) -> &str
pub fn clear_primary_script(&mut self)
pub fn has_primary_script(&self) -> bool
pub fn set_primary_script(&mut self, v: String)
pub fn mut_primary_script(&mut self) -> &mut String
pub fn take_primary_script(&mut self) -> String
pub fn primary_language(&self) -> &str
pub fn clear_primary_language(&mut self)
pub fn has_primary_language(&self) -> bool
pub fn set_primary_language(&mut self, v: String)
pub fn mut_primary_language(&mut self) -> &mut String
pub fn take_primary_language(&mut self) -> String
pub fn stroke(&self) -> &str
pub fn clear_stroke(&mut self)
pub fn has_stroke(&self) -> bool
pub fn set_stroke(&mut self, v: String)
pub fn mut_stroke(&mut self) -> &mut String
pub fn take_stroke(&mut self) -> String
Trait Implementations§
Source§impl Clone for FamilyProto
impl Clone for FamilyProto
Source§fn clone(&self) -> FamilyProto
fn clone(&self) -> FamilyProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FamilyProto
impl Debug for FamilyProto
Source§impl<'a> Default for &'a FamilyProto
impl<'a> Default for &'a FamilyProto
Source§fn default() -> &'a FamilyProto
fn default() -> &'a FamilyProto
Source§impl Default for FamilyProto
impl Default for FamilyProto
Source§fn default() -> FamilyProto
fn default() -> FamilyProto
Source§impl Display for FamilyProto
impl Display for FamilyProto
Source§impl Message for FamilyProto
impl Message for FamilyProto
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
true for protobuf 3.Source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> Result<()>
Source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Source§fn new() -> FamilyProto
fn new() -> FamilyProto
Source§fn default_instance() -> &'static FamilyProto
fn default_instance() -> &'static FamilyProto
Source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
compute_size. Read moreSource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), Error>
Source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Source§impl MessageFull for FamilyProto
impl MessageFull for FamilyProto
Source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
Source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
Source§impl PartialEq for FamilyProto
impl PartialEq for FamilyProto
Source§impl ProtobufValue for FamilyProto
impl ProtobufValue for FamilyProto
Source§type RuntimeType = RuntimeTypeMessage<FamilyProto>
type RuntimeType = RuntimeTypeMessage<FamilyProto>
impl StructuralPartialEq for FamilyProto
Auto Trait Implementations§
impl !Freeze for FamilyProto
impl RefUnwindSafe for FamilyProto
impl Send for FamilyProto
impl Sync for FamilyProto
impl Unpin for FamilyProto
impl UnwindSafe for FamilyProto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
Source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
Source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
Source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
Source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
true for protobuf 3.