pub struct FAQ { /* private fields */ }Expand description
FAQ structured-data primitive.
Implementations§
Source§impl FAQ
impl FAQ
Sourcepub fn new(entries: Vec<FAQEntry>) -> Result<Self, SchemaValueError>
pub fn new(entries: Vec<FAQEntry>) -> Result<Self, SchemaValueError>
Creates an FAQ collection.
§Errors
Returns SchemaValueError::EmptyCollection when no entries are supplied.
Sourcepub const fn schema_type(&self) -> &'static str
pub const fn schema_type(&self) -> &'static str
Returns the schema-like type label.
Trait Implementations§
impl Eq for FAQ
impl StructuralPartialEq for FAQ
Auto Trait Implementations§
impl Freeze for FAQ
impl RefUnwindSafe for FAQ
impl Send for FAQ
impl Sync for FAQ
impl Unpin for FAQ
impl UnsafeUnpin for FAQ
impl UnwindSafe for FAQ
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