pub struct DataModel {
pub name: String,
pub schema_org_type: String,
pub fields: Vec<ModelField>,
pub instance_count: usize,
pub example_urls: Vec<String>,
pub search_action: Option<CompiledAction>,
pub list_url: Option<String>,
}Expand description
A typed data model inferred from structured data on the site.
Fields§
§name: StringHuman-readable name: “Product”, “Article”, etc.
schema_org_type: StringThe Schema.org @type value this model corresponds to.
fields: Vec<ModelField>Fields discovered across all instances.
instance_count: usizeHow many nodes matched this model type.
example_urls: Vec<String>Example URLs of this type (first 5).
search_action: Option<CompiledAction>Search action for this model, if one exists.
list_url: Option<String>Listing page URL for this type, if discovered.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataModel
impl<'de> Deserialize<'de> for DataModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DataModel
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnsafeUnpin for DataModel
impl UnwindSafe for DataModel
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