Skip to main content

TemperamentProfileBuilder

Struct TemperamentProfileBuilder 

Source
pub struct TemperamentProfileBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> TemperamentProfileBuilder<S>

Source

pub fn build(self) -> TemperamentProfile
where S: IsComplete,

Finish building and return the requested object

Source

pub fn group_play_observation( self, value: GroupPlayObservation, ) -> TemperamentProfileBuilder<SetGroupPlayObservation<S>>
where S::GroupPlayObservation: IsUnset,

Optional (Some / Option setters). Default: <temperament::GroupPlayObservation as Default>::default().

Source-backed group play observation carried by this normalized pet-resort entity.

Source

pub fn maybe_group_play_observation( self, value: Option<GroupPlayObservation>, ) -> TemperamentProfileBuilder<SetGroupPlayObservation<S>>
where S::GroupPlayObservation: IsUnset,

Optional (Some / Option setters). Default: <temperament::GroupPlayObservation as Default>::default().

Source-backed group play observation carried by this normalized pet-resort entity.

Source

pub fn people_orientation( self, value: PeopleOrientation, ) -> TemperamentProfileBuilder<SetPeopleOrientation<S>>
where S::PeopleOrientation: IsUnset,

Optional (Some / Option setters). Default: <temperament::PeopleOrientation as Default>::default().

Source-backed people orientation carried by this normalized pet-resort entity.

Source

pub fn maybe_people_orientation( self, value: Option<PeopleOrientation>, ) -> TemperamentProfileBuilder<SetPeopleOrientation<S>>
where S::PeopleOrientation: IsUnset,

Optional (Some / Option setters). Default: <temperament::PeopleOrientation as Default>::default().

Source-backed people orientation carried by this normalized pet-resort entity.

Source

pub fn rating(self, value: Rating) -> TemperamentProfileBuilder<SetRating<S>>
where S::Rating: IsUnset,

Optional (Some / Option setters). Default: <temperament::Rating as Default>::default().

Source-backed rating carried by this normalized pet-resort entity.

Source

pub fn maybe_rating( self, value: Option<Rating>, ) -> TemperamentProfileBuilder<SetRating<S>>
where S::Rating: IsUnset,

Optional (Some / Option setters). Default: <temperament::Rating as Default>::default().

Source-backed rating carried by this normalized pet-resort entity.

Source

pub fn behavior_observations( self, value: Vec<BehaviorObservation>, ) -> TemperamentProfileBuilder<SetBehaviorObservations<S>>
where S::BehaviorObservations: IsUnset,

Optional (Some / Option setters). Default: <Vec<temperament::BehaviorObservation> as Default>::default().

Source-backed behavior observations carried by this normalized pet-resort entity.

Source

pub fn maybe_behavior_observations( self, value: Option<Vec<BehaviorObservation>>, ) -> TemperamentProfileBuilder<SetBehaviorObservations<S>>
where S::BehaviorObservations: IsUnset,

Optional (Some / Option setters). Default: <Vec<temperament::BehaviorObservation> as Default>::default().

Source-backed behavior observations carried by this normalized pet-resort entity.

Source

pub fn staff_notes( self, value: Vec<StaffNote>, ) -> TemperamentProfileBuilder<SetStaffNotes<S>>
where S::StaffNotes: IsUnset,

Optional (Some / Option setters). Default: <Vec<temperament::StaffNote> as Default>::default().

Source-backed staff notes carried by this normalized pet-resort entity.

Source

pub fn maybe_staff_notes( self, value: Option<Vec<StaffNote>>, ) -> TemperamentProfileBuilder<SetStaffNotes<S>>
where S::StaffNotes: IsUnset,

Optional (Some / Option setters). Default: <Vec<temperament::StaffNote> as Default>::default().

Source-backed staff notes carried by this normalized pet-resort entity.

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.

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, 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.