pub struct ReadingStateRow {Show 23 fields
pub fingerprint: String,
pub opened: UnixTimestamp,
pub current_page: i64,
pub pages_count: i64,
pub finished: i64,
pub dithered: i64,
pub zoom_mode: Option<String>,
pub scroll_mode: Option<String>,
pub page_offset_x: Option<i64>,
pub page_offset_y: Option<i64>,
pub rotation: Option<i64>,
pub cropping_margins_json: Option<String>,
pub margin_width: Option<i64>,
pub screen_margin_width: Option<i64>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub text_align: Option<String>,
pub line_height: Option<f64>,
pub contrast_exponent: Option<f64>,
pub contrast_gray: Option<f64>,
pub page_names_json: Option<String>,
pub bookmarks_json: Option<String>,
pub annotations_json: Option<String>,
}Expand description
Database row for the reading_states table
Fields§
§fingerprint: String§opened: UnixTimestamp§current_page: i64§pages_count: i64§finished: i64§dithered: i64§zoom_mode: Option<String>§scroll_mode: Option<String>§page_offset_x: Option<i64>§page_offset_y: Option<i64>§rotation: Option<i64>§cropping_margins_json: Option<String>§margin_width: Option<i64>§screen_margin_width: Option<i64>§font_family: Option<String>§font_size: Option<f64>§text_align: Option<String>§line_height: Option<f64>§contrast_exponent: Option<f64>§contrast_gray: Option<f64>§page_names_json: Option<String>§bookmarks_json: Option<String>§annotations_json: Option<String>Trait Implementations§
Source§impl Clone for ReadingStateRow
impl Clone for ReadingStateRow
Source§fn clone(&self) -> ReadingStateRow
fn clone(&self) -> ReadingStateRow
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 ReadingStateRow
impl Debug for ReadingStateRow
Source§impl<'a, R: Row> FromRow<'a, R> for ReadingStateRowwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
UnixTimestamp: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for ReadingStateRowwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
UnixTimestamp: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<i64>: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for ReadingStateRow
impl RefUnwindSafe for ReadingStateRow
impl Send for ReadingStateRow
impl Sync for ReadingStateRow
impl Unpin for ReadingStateRow
impl UnsafeUnpin for ReadingStateRow
impl UnwindSafe for ReadingStateRow
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more