Struct JoinedFullPet

Source
pub struct JoinedFullPet {
Show 18 fields pub id: Uuid, pub created_at: NaiveDateTime, pub updated_at: NaiveDateTime, pub name: String, pub age: i16, pub photo_url: String, pub gender: Gender, pub size: PetSize, pub weight: f32, pub weight_unit: WeightUnit, pub is_sterilized: bool, pub aggression_levels: Vec<PetAggressionLevel>, pub allergies: Vec<PetAllergy>, pub behaviors: Vec<PetBehavior>, pub breeds: Vec<String>, pub interactions: Vec<PetInteraction>, pub personalities: Vec<PetPersonality>, pub reactivities: Vec<PetReactivity>,
}

Fields§

§id: Uuid§created_at: NaiveDateTime§updated_at: NaiveDateTime§name: String§age: i16§photo_url: String§gender: Gender§size: PetSize§weight: f32§weight_unit: WeightUnit§is_sterilized: bool§aggression_levels: Vec<PetAggressionLevel>§allergies: Vec<PetAllergy>§behaviors: Vec<PetBehavior>§breeds: Vec<String>§interactions: Vec<PetInteraction>§personalities: Vec<PetPersonality>§reactivities: Vec<PetReactivity>

Trait Implementations§

Source§

impl<'r> Decode<'r, Postgres> for JoinedFullPet

Source§

fn decode( value: PgValueRef<'r>, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>

Decode a new value of this type using a raw value from the database.
Source§

impl<'q> Encode<'_, Postgres> for JoinedFullPet

Source§

fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>

Writes the value of self into buf without moving self. Read more
Source§

fn size_hint(&self) -> usize

§

fn encode( self, buf: &mut <DB as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

impl<'a, R: Row> FromRow<'a, R> for JoinedFullPet
where &'a str: ColumnIndex<R>, Uuid: Decode<'a, R::Database> + Type<R::Database>, NaiveDateTime: Decode<'a, R::Database> + Type<R::Database>, String: Decode<'a, R::Database> + Type<R::Database>, i16: Decode<'a, R::Database> + Type<R::Database>, Gender: Decode<'a, R::Database> + Type<R::Database>, PetSize: Decode<'a, R::Database> + Type<R::Database>, f32: Decode<'a, R::Database> + Type<R::Database>, WeightUnit: Decode<'a, R::Database> + Type<R::Database>, bool: Decode<'a, R::Database> + Type<R::Database>, Vec<PetAggressionLevel>: Decode<'a, R::Database> + Type<R::Database>, Vec<PetAllergy>: Decode<'a, R::Database> + Type<R::Database>, Vec<PetBehavior>: Decode<'a, R::Database> + Type<R::Database>, Vec<String>: Decode<'a, R::Database> + Type<R::Database>, Vec<PetInteraction>: Decode<'a, R::Database> + Type<R::Database>, Vec<PetPersonality>: Decode<'a, R::Database> + Type<R::Database>, Vec<PetReactivity>: Decode<'a, R::Database> + Type<R::Database>,

Source§

fn from_row(__row: &'a R) -> Result<Self>

Source§

impl PgHasArrayType for JoinedFullPet

Source§

fn array_type_info() -> PgTypeInfo

§

fn array_compatible(ty: &PgTypeInfo) -> bool

Source§

impl Type<Postgres> for JoinedFullPet

Source§

fn type_info() -> PgTypeInfo

Returns the canonical SQL type for this Rust type. Read more
§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more

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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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> Same for T

Source§

type Output = T

Should always be Self
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<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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

§

impl<T> MaybeSendSync for T