Struct oas_common::types::Post
source · [−]pub struct Post {Show 18 fields
pub identifier: Option<String>,
pub headline: Option<String>,
pub abstract: Option<String>,
pub description: Option<String>,
pub in_language: Option<String>,
pub licence: Option<String>,
pub url: Option<String>,
pub date_published: Option<DateTime<Utc>>,
pub date_modified: Option<DateTime<Utc>>,
pub contributor: Vec<String>,
pub publisher: Option<String>,
pub genre: Vec<String>,
pub creator: Vec<String>,
pub media: Vec<Reference<Media>>,
pub feeds: Vec<Reference<Feed>>,
pub transcript: Option<String>,
pub nlp: Value,
pub other: Map<String, Value>,
}
Fields
identifier: Option<String>
headline: Option<String>
abstract: Option<String>
description: Option<String>
in_language: Option<String>
licence: Option<String>
url: Option<String>
date_published: Option<DateTime<Utc>>
date_modified: Option<DateTime<Utc>>
contributor: Vec<String>
publisher: Option<String>
genre: Vec<String>
creator: Vec<String>
media: Vec<Reference<Media>>
feeds: Vec<Reference<Feed>>
transcript: Option<String>
nlp: Value
other: Map<String, Value>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
sourcefn 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
sourceimpl ElasticMapping for Post
impl ElasticMapping for Post
fn elastic_mapping() -> Value
sourceimpl JsonSchema for Post
impl JsonSchema for Post
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl Mappable for Post
impl Mappable for Post
fn from_fieldmap<T>(value: T, fieldmap: &FieldMap) -> Result<Self, MappingError>where
T: Serialize,
fn from_json(
json: impl AsRef<str>,
fieldmap: &FieldMap
) -> Result<Self, MappingError>
fn from_value(value: Value, fieldmap: &FieldMap) -> Result<Self, MappingError>
fn from_object(object: Object, fieldmap: &FieldMap) -> Result<Self, MappingError>
sourceimpl Resolvable for Post
impl Resolvable for Post
sourcefn resolve_refs<'life0, 'life1, 'async_trait, R: Resolver + Send + Sync>(
&'life0 mut self,
resolver: &'life1 R
) -> Pin<Box<dyn Future<Output = Result<(), MissingRefsError>> + Send + 'async_trait>>where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn resolve_refs<'life0, 'life1, 'async_trait, R: Resolver + Send + Sync>(
&'life0 mut self,
resolver: &'life1 R
) -> Pin<Box<dyn Future<Output = Result<(), MissingRefsError>> + Send + 'async_trait>>where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Resolve all reference with the passed resolver.
sourcefn extract_refs(&mut self) -> Vec<UntypedRecord>
fn extract_refs(&mut self) -> Vec<UntypedRecord>
Extract all loaded records from resolved references, resetting them to their id state.
sourceimpl TypedValue for Post
impl TypedValue for Post
fn validate(&self) -> Result<(), ValidationError>
Auto Trait Implementations
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self