pub struct AtomFeed {Show 14 fields
pub id: Uri,
pub title: AtomText,
pub updated: Timestamp,
pub authors: Vec<AtomPerson>,
pub links: Vec<AtomLink>,
pub categories: Vec<AtomCategory>,
pub contributors: Vec<AtomPerson>,
pub generator: Option<AtomGenerator>,
pub icon: Option<Uri>,
pub logo: Option<Uri>,
pub rights: Option<AtomText>,
pub subtitle: Option<AtomText>,
pub entries: Vec<AtomEntry>,
pub extensions: FeedExtensions,
}Available on crate feature
rss only.Expand description
An Atom feed.
Fields§
§id: Uri§title: AtomText§updated: Timestamp§links: Vec<AtomLink>§categories: Vec<AtomCategory>§contributors: Vec<AtomPerson>§generator: Option<AtomGenerator>§icon: Option<Uri>§logo: Option<Uri>§rights: Option<AtomText>§subtitle: Option<AtomText>§entries: Vec<AtomEntry>§extensions: FeedExtensionsImplementations§
Source§impl AtomFeed
impl AtomFeed
pub fn builder() -> AtomFeedBuilder<Missing, Missing, Missing>
Sourcepub fn into_stream_writer(
self,
) -> AtomStreamWriter<BoxStream<'static, Result<AtomEntry, BoxError>>>
pub fn into_stream_writer( self, ) -> AtomStreamWriter<BoxStream<'static, Result<AtomEntry, BoxError>>>
Stream the feed as XML bytes. Equivalent to
crate::protocols::rss::AtomStreamWriter::from_feed; provided as a method for
discoverability when starting from a whole in-memory feed.
Plugs directly into crate::Body::from_stream.
Trait Implementations§
Source§impl IntoResponse for AtomFeed
impl IntoResponse for AtomFeed
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
impl StructuralPartialEq for AtomFeed
Auto Trait Implementations§
impl Freeze for AtomFeed
impl RefUnwindSafe for AtomFeed
impl Send for AtomFeed
impl Sync for AtomFeed
impl Unpin for AtomFeed
impl UnsafeUnpin for AtomFeed
impl UnwindSafe for AtomFeed
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<O> IntoEndpointService<Response> for O
impl<O> IntoEndpointService<Response> for O
type Service = StaticOutput<O>
Source§fn into_endpoint_service(self) -> <O as IntoEndpointService<Response>>::Service
fn into_endpoint_service(self) -> <O as IntoEndpointService<Response>>::Service
convert the type into a
rama_core::Service.Source§impl<O, State> IntoEndpointServiceWithState<Response, State> for O
impl<O, State> IntoEndpointServiceWithState<Response, State> for O
type Service = StaticOutput<O>
Source§fn into_endpoint_service_with_state(
self,
_state: State,
) -> <O as IntoEndpointServiceWithState<Response, State>>::Service
fn into_endpoint_service_with_state( self, _state: State, ) -> <O as IntoEndpointServiceWithState<Response, State>>::Service
convert the type into a
rama_core::Service with state.