journalapi::entity::homework

Struct Homework

pub struct Homework {
Show 28 fields pub uuid: Uuid, pub updt: Option<NaiveDateTime>, pub updu: Option<Uuid>, pub rstatus: Option<RStatus>, pub ver: Option<i32>, pub lesson: Option<Uuid>, pub book: Option<Uuid>, pub article: Option<Uuid>, pub description: Option<String>, pub status: Option<Status>, pub teacher: Option<Uuid>, pub file: Option<String>, pub form: Option<Uuid>, pub test: Option<Uuid>, pub form_id: Option<Uuid>, pub test_id: Option<Uuid>, pub comment: Option<String>, pub date: Option<NaiveDateTime>, pub student: Option<Uuid>, pub students: Option<Vec<Uuid>>, pub home_work_type: Option<HomeWorkType>, pub name: Option<String>, pub estimated_duration: Option<i32>, pub student_visibility: Option<String>, pub optional: Option<bool>, pub due_lesson: Option<Uuid>, pub due_date: Option<NaiveDateTime>, pub lesson_plan_section: Option<Value>,
}

Fields§

§uuid: Uuid§updt: Option<NaiveDateTime>§updu: Option<Uuid>§rstatus: Option<RStatus>§ver: Option<i32>§lesson: Option<Uuid>§book: Option<Uuid>§article: Option<Uuid>§description: Option<String>§status: Option<Status>§teacher: Option<Uuid>§file: Option<String>§form: Option<Uuid>§test: Option<Uuid>§form_id: Option<Uuid>§test_id: Option<Uuid>§comment: Option<String>§date: Option<NaiveDateTime>§student: Option<Uuid>§students: Option<Vec<Uuid>>§home_work_type: Option<HomeWorkType>§name: Option<String>§estimated_duration: Option<i32>§student_visibility: Option<String>§optional: Option<bool>§due_lesson: Option<Uuid>§due_date: Option<NaiveDateTime>§lesson_plan_section: Option<Value>

Implementations§

§

impl Homework

pub fn to_request(&self) -> HomeworkRequest

pub fn from_request(homework_request: &HomeworkRequest) -> Homework

pub fn to_response( homework: Homework, homework_responses: Vec<HomeworkRespResponse>, ) -> HomeworkResponse

pub fn to_response_list(homeworks: Vec<Homework>) -> Vec<HomeworkResponse>

Trait Implementations§

§

impl<'update> AsChangeset for &'update Homework

§

type Target = table

The table which Self::Changeset will be updating
§

type Changeset = <(Option<Eq<updt, <&'update NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'update Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'update RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'update i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<lesson, <&'update Uuid as AsExpression<<lesson as Expression>::SqlType>>::Expression>>, Option<Eq<book, <&'update Uuid as AsExpression<<book as Expression>::SqlType>>::Expression>>, Option<Eq<article, <&'update Uuid as AsExpression<<article as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'update String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'update Status as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <&'update Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<file, <&'update String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<form, <&'update Uuid as AsExpression<<form as Expression>::SqlType>>::Expression>>, Option<Eq<test, <&'update Uuid as AsExpression<<test as Expression>::SqlType>>::Expression>>, Option<Eq<form_id, <&'update Uuid as AsExpression<<form_id as Expression>::SqlType>>::Expression>>, Option<Eq<test_id, <&'update Uuid as AsExpression<<test_id as Expression>::SqlType>>::Expression>>, Option<Eq<comment, <&'update String as AsExpression<<comment as Expression>::SqlType>>::Expression>>, Option<Eq<date, <&'update NaiveDateTime as AsExpression<<date as Expression>::SqlType>>::Expression>>, Option<Eq<student, <&'update Uuid as AsExpression<<student as Expression>::SqlType>>::Expression>>, Option<Eq<students, <&'update Vec<Uuid> as AsExpression<<students as Expression>::SqlType>>::Expression>>, Option<Eq<home_work_type, <&'update HomeWorkType as AsExpression<<home_work_type as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<estimated_duration, <&'update i32 as AsExpression<<estimated_duration as Expression>::SqlType>>::Expression>>, Option<Eq<student_visibility, <&'update String as AsExpression<<student_visibility as Expression>::SqlType>>::Expression>>, Option<Eq<optional, <&'update bool as AsExpression<<optional as Expression>::SqlType>>::Expression>>, Option<Eq<due_lesson, <&'update Uuid as AsExpression<<due_lesson as Expression>::SqlType>>::Expression>>, Option<Eq<due_date, <&'update NaiveDateTime as AsExpression<<due_date as Expression>::SqlType>>::Expression>>, Option<Eq<lesson_plan_section, <&'update Value as AsExpression<<lesson_plan_section as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset

The update statement this type represents
§

fn as_changeset(self) -> Self::Changeset

Convert self into the actual update statement being executed
§

impl<'update> AsChangeset for Homework

§

type Target = table

The table which Self::Changeset will be updating
§

type Changeset = <(Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<lesson, <Uuid as AsExpression<<lesson as Expression>::SqlType>>::Expression>>, Option<Eq<book, <Uuid as AsExpression<<book as Expression>::SqlType>>::Expression>>, Option<Eq<article, <Uuid as AsExpression<<article as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<status, <Status as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<file, <String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<form, <Uuid as AsExpression<<form as Expression>::SqlType>>::Expression>>, Option<Eq<test, <Uuid as AsExpression<<test as Expression>::SqlType>>::Expression>>, Option<Eq<form_id, <Uuid as AsExpression<<form_id as Expression>::SqlType>>::Expression>>, Option<Eq<test_id, <Uuid as AsExpression<<test_id as Expression>::SqlType>>::Expression>>, Option<Eq<comment, <String as AsExpression<<comment as Expression>::SqlType>>::Expression>>, Option<Eq<date, <NaiveDateTime as AsExpression<<date as Expression>::SqlType>>::Expression>>, Option<Eq<student, <Uuid as AsExpression<<student as Expression>::SqlType>>::Expression>>, Option<Eq<students, <Vec<Uuid> as AsExpression<<students as Expression>::SqlType>>::Expression>>, Option<Eq<home_work_type, <HomeWorkType as AsExpression<<home_work_type as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<estimated_duration, <i32 as AsExpression<<estimated_duration as Expression>::SqlType>>::Expression>>, Option<Eq<student_visibility, <String as AsExpression<<student_visibility as Expression>::SqlType>>::Expression>>, Option<Eq<optional, <bool as AsExpression<<optional as Expression>::SqlType>>::Expression>>, Option<Eq<due_lesson, <Uuid as AsExpression<<due_lesson as Expression>::SqlType>>::Expression>>, Option<Eq<due_date, <NaiveDateTime as AsExpression<<due_date as Expression>::SqlType>>::Expression>>, Option<Eq<lesson_plan_section, <Value as AsExpression<<lesson_plan_section as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset

The update statement this type represents
§

fn as_changeset(self) -> Self::Changeset

Convert self into the actual update statement being executed
§

impl Clone for Homework

§

fn clone(&self) -> Homework

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Homework

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Homework

§

fn default() -> Homework

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Homework

§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl HasTable for Homework

§

type Table = table

The table this type is associated with.
§

fn table() -> Self::Table

Returns the table this type is associated with.
§

impl<'ident> Identifiable for &'ident Homework

§

type Id = &'ident Uuid

The type of this struct’s identifier. Read more
§

fn id(self) -> Self::Id

Returns the identifier for this record. Read more
§

impl<'insert> Insertable<table> for &'insert Homework

§

type Values = <(Option<Eq<uuid, <&'insert Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <&'insert NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'insert Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'insert RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'insert i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<lesson, <&'insert Uuid as AsExpression<<lesson as Expression>::SqlType>>::Expression>>, Option<Eq<book, <&'insert Uuid as AsExpression<<book as Expression>::SqlType>>::Expression>>, Option<Eq<article, <&'insert Uuid as AsExpression<<article as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'insert Status as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <&'insert Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<file, <&'insert String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<form, <&'insert Uuid as AsExpression<<form as Expression>::SqlType>>::Expression>>, Option<Eq<test, <&'insert Uuid as AsExpression<<test as Expression>::SqlType>>::Expression>>, Option<Eq<form_id, <&'insert Uuid as AsExpression<<form_id as Expression>::SqlType>>::Expression>>, Option<Eq<test_id, <&'insert Uuid as AsExpression<<test_id as Expression>::SqlType>>::Expression>>, Option<Eq<comment, <&'insert String as AsExpression<<comment as Expression>::SqlType>>::Expression>>, Option<Eq<date, <&'insert NaiveDateTime as AsExpression<<date as Expression>::SqlType>>::Expression>>, Option<Eq<student, <&'insert Uuid as AsExpression<<student as Expression>::SqlType>>::Expression>>, Option<Eq<students, <&'insert Vec<Uuid> as AsExpression<<students as Expression>::SqlType>>::Expression>>, Option<Eq<home_work_type, <&'insert HomeWorkType as AsExpression<<home_work_type as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<estimated_duration, <&'insert i32 as AsExpression<<estimated_duration as Expression>::SqlType>>::Expression>>, Option<Eq<student_visibility, <&'insert String as AsExpression<<student_visibility as Expression>::SqlType>>::Expression>>, Option<Eq<optional, <&'insert bool as AsExpression<<optional as Expression>::SqlType>>::Expression>>, Option<Eq<due_lesson, <&'insert Uuid as AsExpression<<due_lesson as Expression>::SqlType>>::Expression>>, Option<Eq<due_date, <&'insert NaiveDateTime as AsExpression<<due_date as Expression>::SqlType>>::Expression>>, Option<Eq<lesson_plan_section, <&'insert Value as AsExpression<<lesson_plan_section as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
§

impl<'insert> Insertable<table> for Homework

§

type Values = <(Option<Eq<uuid, <Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<lesson, <Uuid as AsExpression<<lesson as Expression>::SqlType>>::Expression>>, Option<Eq<book, <Uuid as AsExpression<<book as Expression>::SqlType>>::Expression>>, Option<Eq<article, <Uuid as AsExpression<<article as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<status, <Status as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<file, <String as AsExpression<<file as Expression>::SqlType>>::Expression>>, Option<Eq<form, <Uuid as AsExpression<<form as Expression>::SqlType>>::Expression>>, Option<Eq<test, <Uuid as AsExpression<<test as Expression>::SqlType>>::Expression>>, Option<Eq<form_id, <Uuid as AsExpression<<form_id as Expression>::SqlType>>::Expression>>, Option<Eq<test_id, <Uuid as AsExpression<<test_id as Expression>::SqlType>>::Expression>>, Option<Eq<comment, <String as AsExpression<<comment as Expression>::SqlType>>::Expression>>, Option<Eq<date, <NaiveDateTime as AsExpression<<date as Expression>::SqlType>>::Expression>>, Option<Eq<student, <Uuid as AsExpression<<student as Expression>::SqlType>>::Expression>>, Option<Eq<students, <Vec<Uuid> as AsExpression<<students as Expression>::SqlType>>::Expression>>, Option<Eq<home_work_type, <HomeWorkType as AsExpression<<home_work_type as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<estimated_duration, <i32 as AsExpression<<estimated_duration as Expression>::SqlType>>::Expression>>, Option<Eq<student_visibility, <String as AsExpression<<student_visibility as Expression>::SqlType>>::Expression>>, Option<Eq<optional, <bool as AsExpression<<optional as Expression>::SqlType>>::Expression>>, Option<Eq<due_lesson, <Uuid as AsExpression<<due_lesson as Expression>::SqlType>>::Expression>>, Option<Eq<due_date, <NaiveDateTime as AsExpression<<due_date as Expression>::SqlType>>::Expression>>, Option<Eq<lesson_plan_section, <Value as AsExpression<<lesson_plan_section as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
§

impl MetaFields for Homework

§

fn update_fields(&mut self, user_id: Uuid)

§

fn init_fields(&mut self, user_id: Uuid)

§

impl PartialEq for Homework

§

fn eq(&self, other: &Homework) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Homework

§

impl<__DB: Backend> QueryableByName<__DB> for Homework

§

fn build<__R: NamedRow<__DB>>(row: &__R) -> Result<Self>

Construct an instance of Self from the database row
§

impl Serialize for Homework

§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Homework

§

impl<'insert> UndecoratedInsertRecord<table> for Homework

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
Source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

Source§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
Source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T, Dst> ConvAsUtil<Dst> for T

Source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
Source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
Source§

impl<T> ConvUtil for T

Source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
Source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
Source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
Source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
Source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression
where Self: Sized + AsExpression<T>,

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<Src> TryFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

Source§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<Src> ValueFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
Source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

Source§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,