pub struct Page {
pub id: String,
pub schema: String,
pub body_text: Option<Vec<String>>,
pub detected_language: Option<Vec<String>>,
pub document: Option<Vec<String>>,
pub index: Option<Vec<f64>>,
pub index_text: Option<Vec<String>>,
pub translated_text: Option<Vec<String>>,
pub translated_text_language: Option<Vec<String>>,
}Expand description
FTM Schema: Page
Fields§
§id: String§schema: String§body_text: Option<Vec<String>>Property: Text
detected_language: Option<Vec<String>>Property: Detected language
document: Option<Vec<String>>Property: Document
index: Option<Vec<f64>>Property: Index
index_text: Option<Vec<String>>Property: Index text
translated_text: Option<Vec<String>>Property: Translated version of the body text
translated_text_language: Option<Vec<String>>Property: The language of the translated text
Implementations§
Source§impl Page
impl Page
Sourcepub fn builder() -> PageBuilder
pub fn builder() -> PageBuilder
Create an instance of Page using the builder syntax
Source§impl Page
impl Page
Sourcepub fn new(id: impl Into<String>) -> Self
👎Deprecated: Use the builder() method instead to ensure required fields are set
pub fn new(id: impl Into<String>) -> Self
Create a new entity with the given ID
Sourcepub fn schema_name() -> &'static str
pub fn schema_name() -> &'static str
Get the schema name
Sourcepub fn to_ftm_json(&self) -> Result<String, Error>
pub fn to_ftm_json(&self) -> Result<String, Error>
Serialize to standard FTM nested JSON format
Produces {"id": "...", "schema": "...", "properties": {...}}
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Page
impl<'de> Deserialize<'de> for Page
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 Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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