[][src]Struct opml::Outline

pub struct Outline {
    pub text: String,
    pub type: Option<String>,
    pub is_comment: bool,
    pub is_breakpoint: bool,
    pub created: Option<String>,
    pub category: Option<String>,
    pub outlines: Vec<Outline>,
    pub xml_url: Option<String>,
    pub description: Option<String>,
    pub html_url: Option<String>,
    pub language: Option<String>,
    pub title: Option<String>,
    pub version: Option<String>,
    pub url: Option<String>,
}

An <outline> is an XML element containing at least one required attribute, text, and zero or more additional attributes. An <outline> may contain zero or more <outline> sub-elements. No attribute may be repeated within the same <outline> element.

Fields

text: String

Every outline element must have at least a text attribute, which is what is displayed when an outliner opens the OPML file. Text attributes may contain encoded HTML markup.

type: Option<String>

A string that says how the other attributes of the <outline> are interpreted.

is_comment: bool

Indicating whether the outline is commented or not. By convention if an outline is commented, all subordinate outlines are considered to also be commented. If it's not present, the value is false.

is_breakpoint: bool

Indicating whether a breakpoint is set on this outline. This attribute is mainly necessary for outlines used to edit scripts. If it's not present, the value is false.

created: Option<String>

The date-time (RFC822) that this outline node was created.

category: Option<String>

A string of comma-separated slash-delimited category strings, in the format defined by the RSS 2.0 category element. To represent a "tag," the category string should contain no slashes.

outlines: Vec<Outline>

Child outlines of the current one.

xml_url: Option<String>

The HTTP address of the feed.

description: Option<String>

The top-level description element from the feed.

html_url: Option<String>

The top-level link element from the feed.

language: Option<String>

The top-level language element from the feed.

title: Option<String>

The top-level title element from the feed.

version: Option<String>

The version of the feed's format (such as RSS 0.91, 2.0, ...).

url: Option<String>

A link that can point to another OPML file or to something that can be displayed in a web browser.

Trait Implementations

impl Debug for Outline[src]

impl PartialEq<Outline> for Outline[src]

impl StructuralPartialEq for Outline[src]

impl<'__input> XmlRead<'__input> for Outline[src]

impl XmlWrite for Outline[src]

Auto Trait Implementations

impl RefUnwindSafe for Outline

impl Send for Outline

impl Sync for Outline

impl Unpin for Outline

impl UnwindSafe for Outline

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> XmlReadOwned for T where
    T: for<'s> XmlRead<'s>, 
[src]