pub struct FileRecord {
pub id: i32,
pub jid: Option<i32>,
pub deleted: bool,
pub path: String,
pub size: i64,
pub modified_at: OffsetDateTime,
pub namespace_id: i32,
}
Fields§
§id: i32
§jid: Option<i32>
§deleted: bool
§path: String
§size: i64
§modified_at: OffsetDateTime
§namespace_id: i32
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
Returns a copy 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 FileRecord
impl Debug for FileRecord
Source§impl HasTable for FileRecord
impl HasTable for FileRecord
Source§impl<'ident> Identifiable for &'ident FileRecord
impl<'ident> Identifiable for &'ident FileRecord
Source§impl PartialEq<CreateForm> for FileRecord
impl PartialEq<CreateForm> for FileRecord
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6), __DB> for FileRecordwhere
(i32, Option<i32>, bool, String, i64, OffsetDateTime, i32): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6), __DB>,
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6), __DB> for FileRecordwhere
(i32, Option<i32>, bool, String, i64, OffsetDateTime, i32): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6), __DB>,
Source§impl<__DB: Backend> Selectable<__DB> for FileRecord
impl<__DB: Backend> Selectable<__DB> for FileRecord
Source§type SelectExpression = (id, jid, deleted, path, size, modified_at, namespace_id)
type SelectExpression = (id, jid, deleted, path, size, modified_at, namespace_id)
The expression you’d like to select. Read more
Source§fn construct_selection() -> Self::SelectExpression
fn construct_selection() -> Self::SelectExpression
Construct an instance of the expression
Auto Trait Implementations§
impl Freeze for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnwindSafe for FileRecord
Blanket Implementations§
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<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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> 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, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
Source§fn as_select() -> SelectBy<T, DB>
fn as_select() -> SelectBy<T, DB>
Construct a select clause based on a
Selectable
implementation. Read moreSource§fn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for
as_select
that can be used with returning clausesSource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const 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.