pub struct ContentAnnotations {
pub audience: Option<Vec<ContentRole>>,
pub priority: Option<f64>,
pub last_modified: Option<String>,
}Expand description
Annotations for content items
Fields§
§audience: Option<Vec<ContentRole>>Intended audience for this content
priority: Option<f64>Priority hint from 0 (optional) to 1 (required)
last_modified: Option<String>ISO 8601 timestamp of when this content was last modified
Trait Implementations§
Source§impl Clone for ContentAnnotations
impl Clone for ContentAnnotations
Source§fn clone(&self) -> ContentAnnotations
fn clone(&self) -> ContentAnnotations
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 ContentAnnotations
impl Debug for ContentAnnotations
Source§impl Default for ContentAnnotations
impl Default for ContentAnnotations
Source§fn default() -> ContentAnnotations
fn default() -> ContentAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentAnnotations
impl<'de> Deserialize<'de> for ContentAnnotations
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContentAnnotations
impl Serialize for ContentAnnotations
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ContentAnnotations
impl RefUnwindSafe for ContentAnnotations
impl Send for ContentAnnotations
impl Sync for ContentAnnotations
impl Unpin for ContentAnnotations
impl UnsafeUnpin for ContentAnnotations
impl UnwindSafe for ContentAnnotations
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