pub struct NewPlatformMetadata {
pub platform_id: Option<i32>,
pub name: Option<String>,
pub description: Option<String>,
pub background_url: Option<String>,
pub logo_url: Option<String>,
pub igdb_id: Option<i64>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}
Fields§
§platform_id: Option<i32>
§name: Option<String>
§description: Option<String>
§background_url: Option<String>
§logo_url: Option<String>
§igdb_id: Option<i64>
§created_at: Option<Timestamp>
§updated_at: Option<Timestamp>
Implementations§
Source§impl NewPlatformMetadata
impl NewPlatformMetadata
Sourcepub fn platform_id(&self) -> i32
pub fn platform_id(&self) -> i32
Returns the value of platform_id
, or the default value if platform_id
is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Sourcepub fn background_url(&self) -> &str
pub fn background_url(&self) -> &str
Returns the value of background_url
, or the default value if background_url
is unset.
Trait Implementations§
Source§impl<'update> AsChangeset for &'update NewPlatformMetadata
impl<'update> AsChangeset for &'update NewPlatformMetadata
Source§type Changeset = <(Option<Grouped<Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'update String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <&'update String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <&'update String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <&'update i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'update Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'update String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <&'update String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <&'update String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <&'update i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'update Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl AsChangeset for NewPlatformMetadata
impl AsChangeset for NewPlatformMetadata
Source§type Changeset = <(Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl<__FK> BelongsTo<&Platform> for NewPlatformMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Platform> for NewPlatformMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = platform_id
type ForeignKeyColumn = platform_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Platform> for NewPlatformMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Platform> for NewPlatformMetadatawhere
__FK: Hash + Eq,
for<'__a> &'__a Option<i32>: Into<Option<&'__a __FK>>,
for<'__a> &'__a Platform: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = platform_id
type ForeignKeyColumn = platform_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl Clone for NewPlatformMetadata
impl Clone for NewPlatformMetadata
Source§fn clone(&self) -> NewPlatformMetadata
fn clone(&self) -> NewPlatformMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NewPlatformMetadata
impl Debug for NewPlatformMetadata
Source§impl Default for NewPlatformMetadata
impl Default for NewPlatformMetadata
Source§impl<'de> Deserialize<'de> for NewPlatformMetadata
impl<'de> Deserialize<'de> for NewPlatformMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasTable for NewPlatformMetadata
impl HasTable for NewPlatformMetadata
Source§impl Hash for NewPlatformMetadata
impl Hash for NewPlatformMetadata
Source§impl<'ident> Identifiable for &'ident NewPlatformMetadata
impl<'ident> Identifiable for &'ident NewPlatformMetadata
Source§impl<'insert> Insertable<table> for &'insert NewPlatformMetadata
impl<'insert> Insertable<table> for &'insert NewPlatformMetadata
Source§type Values = <(Option<Grouped<Eq<platform_id, <&'insert i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <&'insert String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <&'insert String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <&'insert i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'insert Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<platform_id, <&'insert i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <&'insert String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <&'insert String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <&'insert i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'insert Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<platform_id, &'insert i32>>, Option<Eq<name, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<background_url, &'insert String>>, Option<Eq<logo_url, &'insert String>>, Option<Eq<igdb_id, &'insert i64>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<platform_id, &'insert i32>>, Option<Eq<name, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<background_url, &'insert String>>, Option<Eq<logo_url, &'insert String>>, Option<Eq<igdb_id, &'insert i64>>, Option<Eq<created_at, &'insert Timestamp>>, Option<Eq<updated_at, &'insert Timestamp>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreSource§impl Insertable<table> for NewPlatformMetadata
impl Insertable<table> for NewPlatformMetadata
Source§type Values = <(Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<platform_id, <i32 as AsExpression<<platform_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<background_url, <String as AsExpression<<background_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<logo_url, <String as AsExpression<<logo_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<igdb_id, <i64 as AsExpression<<igdb_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <Timestamp as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <Timestamp as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<platform_id, i32>>, Option<Eq<name, String>>, Option<Eq<description, String>>, Option<Eq<background_url, String>>, Option<Eq<logo_url, String>>, Option<Eq<igdb_id, i64>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<platform_id, i32>>, Option<Eq<name, String>>, Option<Eq<description, String>>, Option<Eq<background_url, String>>, Option<Eq<logo_url, String>>, Option<Eq<igdb_id, i64>>, Option<Eq<created_at, Timestamp>>, Option<Eq<updated_at, Timestamp>>) as Insertable<table>>::Values
Construct
Self::Values
Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self
into a given table. Read moreSource§impl Message for NewPlatformMetadata
impl Message for NewPlatformMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for NewPlatformMetadata
impl PartialEq for NewPlatformMetadata
Source§impl Serialize for NewPlatformMetadata
impl Serialize for NewPlatformMetadata
impl Eq for NewPlatformMetadata
impl StructuralPartialEq for NewPlatformMetadata
impl UndecoratedInsertRecord<table> for NewPlatformMetadata
Auto Trait Implementations§
impl Freeze for NewPlatformMetadata
impl RefUnwindSafe for NewPlatformMetadata
impl Send for NewPlatformMetadata
impl Sync for NewPlatformMetadata
impl Unpin for NewPlatformMetadata
impl UnwindSafe for NewPlatformMetadata
Blanket Implementations§
Source§impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
Source§type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by
belonging_to
Source§fn belonging_to(
parents: &'a Vec<Parent>,
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
fn belonging_to( parents: &'a Vec<Parent>, ) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
Get the record(s) belonging to record(s)
other
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T, Conn> RunQueryDsl<Conn> for T
impl<T, Conn> RunQueryDsl<Conn> for T
Source§fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
fn execute<'conn, 'query>( self, conn: &'conn mut Conn, ) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
Executes the given command, returning the number of rows affected. Read more
Source§fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
fn load<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
Source§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Source§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
fn get_result<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
Runs the command, and returns the affected row. Read more
Source§fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
fn get_results<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
Runs the command, returning an
Vec
with the affected rows. Read moreSource§fn first<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
fn first<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
Attempts to load a single record. Read more