Struct news_flash::models::feed::Feed
source · pub struct Feed {
pub feed_id: FeedID,
pub label: String,
pub website: Option<Url>,
pub feed_url: Option<Url>,
pub icon_url: Option<Url>,
}
Fields
feed_id: FeedID
label: String
website: Option<Url>
feed_url: Option<Url>
icon_url: Option<Url>
Trait Implementations
sourceimpl<__FK> BelongsTo<&Feed> for FeedMappingwhere
__FK: Hash + Eq,
for<'__a> &'__a FeedID: Into<Option<&'__a __FK>>,
for<'__a> &'__a Feed: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Feed> for FeedMappingwhere
__FK: Hash + Eq,
for<'__a> &'__a FeedID: Into<Option<&'__a __FK>>,
for<'__a> &'__a Feed: Identifiable<Id = &'__a __FK>,
type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = feed_id
type ForeignKeyColumn = feed_id
The database column representing the foreign key
of the table this struct represents Read more
sourcefn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
sourcefn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
sourceimpl<__FK> BelongsTo<Feed> for FeedMappingwhere
__FK: Hash + Eq,
for<'__a> &'__a FeedID: Into<Option<&'__a __FK>>,
for<'__a> &'__a Feed: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Feed> for FeedMappingwhere
__FK: Hash + Eq,
for<'__a> &'__a FeedID: Into<Option<&'__a __FK>>,
for<'__a> &'__a Feed: Identifiable<Id = &'__a __FK>,
type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = feed_id
type ForeignKeyColumn = feed_id
The database column representing the foreign key
of the table this struct represents Read more
sourcefn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
sourcefn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
sourceimpl<'ident> Identifiable for &'ident Feed
impl<'ident> Identifiable for &'ident Feed
sourceimpl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB> for Feedwhere
(FeedID, String, Option<Url>, Option<Url>, Option<Url>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB>,
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB> for Feedwhere
(FeedID, String, Option<Url>, Option<Url>, Option<Url>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB>,
impl Eq for Feed
impl StructuralEq for Feed
Auto Trait Implementations
impl RefUnwindSafe for Feed
impl Send for Feed
impl Sync for Feed
impl Unpin for Feed
impl UnwindSafe for Feed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read moreimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
sourceconst FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.