pub struct OfficeForm {Show 39 fields
pub school: Uuid,
pub registration_number: Option<String>,
pub enrolment_date: Option<NaiveDate>,
pub roll_class: Option<Uuid>,
pub current_year: Option<i32>,
pub house_group: Option<String>,
pub home_care: bool,
pub care_provider_name: String,
pub student_identity: bool,
pub evidence_supplied: bool,
pub in_area: bool,
pub passport_number: i64,
pub issue_country: String,
pub current_visa_subclass: Option<i32>,
pub previous_visa_subclasses: Vec<i32>,
pub authority_code: Option<i64>,
pub medical_plans_copied: bool,
pub personal_plan_copied: bool,
pub air_immunisation_history_copied: bool,
pub immunisation_status: Option<bool>,
pub court_order_copied: bool,
pub parent_not_living_with_student: Option<ParentalResponsibility>,
pub participation_letter_returned: bool,
pub interview_conducted: bool,
pub student_history_assessed: bool,
pub risk_assessment_required: bool,
pub risk_assessment_conducted: Option<bool>,
pub personalised_learning_required: bool,
pub parents_consultation_conducted: bool,
pub planning_completed: bool,
pub violence_management_plan: bool,
pub other_management_plan: bool,
pub health_care_plan: bool,
pub emergency_response_plan: bool,
pub relevant_staff_communication: bool,
pub appication_to_enrol: bool,
pub principal_signature: String,
pub principal_print_name: String,
pub principal_date: NaiveDate,
}Fields§
§school: Uuid§registration_number: Option<String>§enrolment_date: Option<NaiveDate>§roll_class: Option<Uuid>§current_year: Option<i32>§house_group: Option<String>§home_care: bool§care_provider_name: String§student_identity: bool§evidence_supplied: bool§in_area: bool§passport_number: i64§issue_country: String§current_visa_subclass: Option<i32>§previous_visa_subclasses: Vec<i32>§medical_plans_copied: bool§personal_plan_copied: bool§air_immunisation_history_copied: bool§immunisation_status: Option<bool>§court_order_copied: bool§parent_not_living_with_student: Option<ParentalResponsibility>§participation_letter_returned: bool§interview_conducted: bool§student_history_assessed: bool§risk_assessment_required: bool§risk_assessment_conducted: Option<bool>§personalised_learning_required: bool§parents_consultation_conducted: bool§planning_completed: bool§violence_management_plan: bool§other_management_plan: bool§health_care_plan: bool§emergency_response_plan: bool§relevant_staff_communication: bool§appication_to_enrol: bool§principal_signature: String§principal_print_name: String§principal_date: NaiveDateTrait Implementations§
Source§impl Clone for OfficeForm
impl Clone for OfficeForm
Source§fn clone(&self) -> OfficeForm
fn clone(&self) -> OfficeForm
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 OfficeForm
impl Debug for OfficeForm
Source§impl<'de> Deserialize<'de> for OfficeForm
impl<'de> Deserialize<'de> for OfficeForm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> FromSql<'a> for OfficeForm
impl<'a> FromSql<'a> for OfficeForm
Source§fn from_sql(
_type: &Type,
buf: &'a [u8],
) -> Result<OfficeForm, Box<dyn Error + Sync + Send>>
fn from_sql( _type: &Type, buf: &'a [u8], ) -> Result<OfficeForm, Box<dyn Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified
Postgres
Type in its binary format. Read moreSource§fn accepts(type_: &Type) -> bool
fn accepts(type_: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres
Type.Source§impl PartialEq for OfficeForm
impl PartialEq for OfficeForm
Source§impl Serialize for OfficeForm
impl Serialize for OfficeForm
Source§impl ToSql for OfficeForm
impl ToSql for OfficeForm
Source§fn to_sql(
&self,
_type: &Type,
buf: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql( &self, _type: &Type, buf: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self into the binary format of the specified
Postgres Type, appending it to out. Read moreSource§fn accepts(type_: &Type) -> bool
fn accepts(type_: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type.Source§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
Source§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
impl StructuralPartialEq for OfficeForm
Auto Trait Implementations§
impl Freeze for OfficeForm
impl RefUnwindSafe for OfficeForm
impl Send for OfficeForm
impl Sync for OfficeForm
impl Unpin for OfficeForm
impl UnwindSafe for OfficeForm
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
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 Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
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>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
Source§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self as a ToSql trait object.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
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>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.