Skip to main content

GroupSignUpConditions

Struct GroupSignUpConditions 

Source
pub struct GroupSignUpConditions {
Show 22 fields pub deprecated: BTreeMap<String, String>, pub at_least_one_leader_can_create_new_person: bool, pub can_contact_leader: bool, pub can_sign_up: bool, pub can_sign_up_as_new_person: bool, pub default_role_set_in_group: Option<bool>, pub end_date_not_passed: bool, pub group_allows_waitinglist: bool, pub group_has_leader: bool, pub group_has_space_for_requests: bool, pub group_has_space_on_waitinglist: bool, pub group_is_active: bool, pub group_is_not_full: bool, pub group_is_not_hidden: bool, pub group_is_open_for_members: bool, pub group_is_public: bool, pub group_visibility: String, pub new_person_department_is_set: bool, pub new_person_station_is_set: bool, pub new_person_status_is_set: bool, pub sign_up_role_set_in_group: bool, pub extra: Map<String, Value>,
}
Expand description

Specifies conditions required to sign up in this group. Not all conditions apply to any user, e.g. some of the conditions only apply to users that are not logged in.

Fields§

§deprecated: BTreeMap<String, String>§at_least_one_leader_can_create_new_person: bool§can_contact_leader: bool

If false, none of the group’s leaders have an email address set. Only persons already signed in can sign up.

§can_sign_up: bool§can_sign_up_as_new_person: bool§default_role_set_in_group: Option<bool>
👎Deprecated:

deprecated in the ChurchTools API

§end_date_not_passed: bool

If false, the group’s end date has passed and nobody can sign up.

§group_allows_waitinglist: bool§group_has_leader: bool

If false, no leader is set for the group and nobody can sign up.

§group_has_space_for_requests: bool§group_has_space_on_waitinglist: bool§group_is_active: bool

If false, the group is not in active state and nobody can sign up.

§group_is_not_full: bool

If false, the group’s max number of members is reached and nobody can sign up.

§group_is_not_hidden: bool

If false, the group is set to hidden and nobody can sign up.

§group_is_open_for_members: bool

If false, the group is not set to be open for members and nobody can sign up.

§group_is_public: bool

If false, the group is not public and only users already signed in are allowed to sign up.

§group_visibility: String

The visibility of a group. Allowed values: hidden, intern, public, restricted.

§new_person_department_is_set: bool

If false, the default department for new users is not set. When persons without an account attempt to sign up, no new user accounts will be created but the group leader will be requested by mail.

§new_person_station_is_set: bool

If false, the default station for new users is not set. When persons without an account attempt to sign up, no new user accounts will be created but the group leader will be requested by mail.

§new_person_status_is_set: bool

If false, the default status for new users is not set. When persons without an account attempt to sign up, no new user accounts will be created but the group leader will be requested by mail.

§sign_up_role_set_in_group: bool

If false, the sign-up role is not set for the group and nobody can sign up when that role is required.

§extra: Map<String, Value>

Fields not described by the spec, e.g. instance-specific DB fields.

Trait Implementations§

Source§

impl Clone for GroupSignUpConditions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GroupSignUpConditions

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for GroupSignUpConditions

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for GroupSignUpConditions

Source§

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 PartialEq for GroupSignUpConditions

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for GroupSignUpConditions

Source§

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

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

impl StructuralPartialEq for GroupSignUpConditions

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> CloneToUninit for T
where T: Clone,

Source§

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

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

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

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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