[][src]Struct brokaw::types::response::Body

pub struct Body {
    pub number: ArticleNumber,
    pub message_id: String,
    // some fields omitted
}

An article body returned by the BODY

Fields

number: ArticleNumber

The number of the article unique to a particular newsgroup

message_id: String

The unique message id for the article

Implementations

impl Body[src]

pub fn number(&self) -> ArticleNumber[src]

The number of the article relative to the group it was retrieved from

pub fn message_id(&self) -> &str[src]

The message id of the article

pub fn body(&self) -> &[u8][src]

The raw contents of the body

pub fn lines(&self) -> Lines[src]

An iterator over the lines in the body of the article

pub fn unterminated(&self) -> Unterminated[src]

An iterator over the lines of the body without the CRLF terminators

Trait Implementations

impl Clone for Body[src]

impl Debug for Body[src]

impl Eq for Body[src]

impl PartialEq<Body> for Body[src]

impl StructuralEq for Body[src]

impl StructuralPartialEq for Body[src]

impl<'_> TryFrom<&'_ RawResponse> for Body[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Body

impl Send for Body

impl Sync for Body

impl Unpin for Body

impl UnwindSafe for Body

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.