Struct oas_common::types::Media
source · [−]pub struct Media {
pub content_url: String,
pub content_size: Option<u32>,
pub encoding_format: Option<String>,
pub duration: Option<f32>,
pub transcript: Option<Transcript>,
pub nlp: Option<Value>,
pub other: Map<String, Value>,
pub feeds: Vec<Reference<Feed>>,
pub posts: Vec<Reference<Post>>,
}
Fields
content_url: String
content_size: Option<u32>
encoding_format: Option<String>
duration: Option<f32>
transcript: Option<Transcript>
nlp: Option<Value>
other: Map<String, Value>
feeds: Vec<Reference<Feed>>
posts: Vec<Reference<Post>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Media
impl<'de> Deserialize<'de> for Media
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 Media
impl ElasticMapping for Media
fn elastic_mapping() -> Value
sourceimpl JsonSchema for Media
impl JsonSchema for Media
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 Media
impl Mappable for Media
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 TypedValue for Media
impl TypedValue for Media
fn validate(&self) -> Result<(), ValidationError>
Auto Trait Implementations
impl RefUnwindSafe for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnwindSafe for Media
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