pub struct StructuredData<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> StructuredData<'a>
impl<'a> StructuredData<'a>
pub const VT_SCHEMA_TYPE: VOffsetT = 4
pub const VT_PROPERTIES_JSON: VOffsetT = 6
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args StructuredDataArgs<'args>, ) -> WIPOffset<StructuredData<'bldr>>
Sourcepub fn schema_type(&self) -> &'a str
pub fn schema_type(&self) -> &'a str
Schema.org type (e.g., “Article”, “Product”, “FAQ”, “BreadcrumbList”).
Sourcepub fn properties_json(&self) -> &'a str
pub fn properties_json(&self) -> &'a str
JSON-LD properties as a JSON string. The validator checks basic conformance to the declared schema_type.
Trait Implementations§
Source§impl<'a> Clone for StructuredData<'a>
impl<'a> Clone for StructuredData<'a>
Source§fn clone(&self) -> StructuredData<'a>
fn clone(&self) -> StructuredData<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructuredData<'_>
impl Debug for StructuredData<'_>
Source§impl<'a> Follow<'a> for StructuredData<'a>
impl<'a> Follow<'a> for StructuredData<'a>
Source§impl<'a> PartialEq for StructuredData<'a>
impl<'a> PartialEq for StructuredData<'a>
Source§impl Verifiable for StructuredData<'_>
impl Verifiable for StructuredData<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for StructuredData<'a>
impl<'a> StructuralPartialEq for StructuredData<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructuredData<'a>
impl<'a> RefUnwindSafe for StructuredData<'a>
impl<'a> Send for StructuredData<'a>
impl<'a> Sync for StructuredData<'a>
impl<'a> Unpin for StructuredData<'a>
impl<'a> UnsafeUnpin for StructuredData<'a>
impl<'a> UnwindSafe for StructuredData<'a>
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