pub struct ServiceGroupPersonPreference {
pub max_per_month: i64,
pub modified_date: DateTime<Utc>,
pub modified_person: ServiceGroupPersonPreferenceModifiedPerson,
pub morning_weight: i64,
pub person_id: i64,
pub relation_weight: i64,
pub service_group_id: i64,
pub extra: Map<String, Value>,
}Fields§
§max_per_month: i64Reaching or exceeding it adds a score penalty; it is not an assignment limit.
modified_date: DateTime<Utc>A timestamp in Zulu time format, e.g. ‘2022-10-19T12:00:00Z’
modified_person: ServiceGroupPersonPreferenceModifiedPerson§morning_weight: i640: no preference; 1: prefer morning; 2: only morning; 3: prefer afternoon/evening; 4: only afternoon/evening. Candidate scoring treats event starts before 13:00 as morning. These preferences influence the score; they do not remove candidates.
Allowed values: 0, 1, 2, 3, 4.
person_id: i64§relation_weight: i640: no preference; 1: prefer serving with the partner; 2: prefer serving separately. Influences candidate scoring when a related partner has an assignment at the event.
Allowed values: 0, 1, 2.
service_group_id: i64§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for ServiceGroupPersonPreference
impl Clone for ServiceGroupPersonPreference
Source§impl Debug for ServiceGroupPersonPreference
impl Debug for ServiceGroupPersonPreference
Source§impl<'de> Deserialize<'de> for ServiceGroupPersonPreference
impl<'de> Deserialize<'de> for ServiceGroupPersonPreference
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
impl StructuralPartialEq for ServiceGroupPersonPreference
Auto Trait Implementations§
impl Freeze for ServiceGroupPersonPreference
impl RefUnwindSafe for ServiceGroupPersonPreference
impl Send for ServiceGroupPersonPreference
impl Sync for ServiceGroupPersonPreference
impl Unpin for ServiceGroupPersonPreference
impl UnsafeUnpin for ServiceGroupPersonPreference
impl UnwindSafe for ServiceGroupPersonPreference
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