earth::feed

Struct Source

Source
pub struct Source {
    pub metadata: Metadata,
    pub subtitle: Option<Text>,
    pub generator: Option<Generator>,
    pub logo: Option<String>,
    pub icon: Option<String>,
}
Expand description

All metadata for Feed excepting Feed.entries. It corresponds to atom:source element of :rfc:4287#section-4.2.10 (section 4.2.10).

Fields§

§metadata: Metadata§subtitle: Option<Text>

A text that conveys a human-readable description or subtitle for a feed. It corresponds to atom:subtitle element of :rfc:4287#section-4.2.12 (section 4.2.12).

§generator: Option<Generator>

Identify the agent used to generate a feed, for debugging and other purposes. It corresponds to atom:generator element of :rfc:4287#section-4.2.4 (section 4.2.4).

URI that identifies an image that provides visual identification for a feed. It corresponds to atom:logo element of :rfc:4287#section-4.2.8 (section 4.2.8).

§icon: Option<String>

URI that identifies an image that provides iconic visual identification for a feed. It corresponds to atom:icon element of :rfc:4287#section-4.2.5 (section 4.2.5).

Implementations§

Source§

impl Source

Source

pub fn new_inherited( id: String, title: Text, updated_at: DateTime<FixedOffset>, ) -> Source

Source

pub fn new(id: String, title: Text, updated_at: DateTime<FixedOffset>) -> Source

Trait Implementations§

Source§

impl Default for Source

Source§

fn default() -> Source

Returns the “default value” for a type. Read more
Source§

impl Deref for Source

Source§

type Target = Metadata

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Metadata

Dereferences the value.
Source§

impl DerefMut for Source

Source§

fn deref_mut(&mut self) -> &mut Metadata

Mutably dereferences the value.
Source§

impl FromSchemaReader for Source

Source§

fn match_child<B: BufRead>( &mut self, name: &XmlName, child: XmlElement<'_, B>, ) -> DecodeResult<()>

Source§

fn build_from<B: BufRead>(element: XmlElement<'_, B>) -> DecodeResult<Self>

Source§

fn read_from<B: BufRead>( &mut self, element: XmlElement<'_, B>, ) -> DecodeResult<()>

Source§

impl Mergeable for Source

Source§

fn merge_with(&mut self, other: Source)

Merge data with the given value to renew itself as a latest state. Read more

Auto Trait Implementations§

§

impl Freeze for Source

§

impl RefUnwindSafe for Source

§

impl Send for Source

§

impl Sync for Source

§

impl Unpin for Source

§

impl UnwindSafe for Source

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.