[][src]Struct cio_api::GroupConfig

pub struct GroupConfig {
    pub name: String,
    pub description: String,
    pub aliases: Option<Vec<String>>,
    pub allow_external_members: bool,
    pub allow_web_posting: bool,
    pub is_archived: bool,
    pub who_can_discover_group: String,
    pub who_can_join: String,
    pub who_can_moderate_members: String,
    pub who_can_post_message: String,
    pub who_can_view_group: String,
    pub who_can_view_membership: String,
}

The data type for a group. This applies to Google Groups.

Fields

name: Stringdescription: Stringaliases: Option<Vec<String>>allow_external_members: bool

allow_external_members: Identifies whether members external to your organization can join the group. Possible values are:

  • true: G Suite users external to your organization can become members of this group.
  • false: Users not belonging to the organization are not allowed to become members of this group.
allow_web_posting: bool

allow_web_posting: Allows posting from web. Possible values are:

  • true: Allows any member to post to the group forum.
  • false: Members only use Gmail to communicate with the group.
is_archived: bool

is_archived: Allows the Group contents to be archived. Possible values are:

  • true: Archive messages sent to the group.
  • false: Do not keep an archive of messages sent to this group. If false, previously archived messages remain in the archive.
who_can_discover_group: String

who_can_discover_group: Specifies the set of users for whom this group is discoverable. Possible values are:

  • ANYONE_CAN_DISCOVER
  • ALL_IN_DOMAIN_CAN_DISCOVER
  • ALL_MEMBERS_CAN_DISCOVER
who_can_join: String

who_can_join: Permission to join group. Possible values are:

  • ANYONE_CAN_JOIN: Anyone in the account domain can join. This includes accounts with multiple domains.

  • ALL_IN_DOMAIN_CAN_JOIN: Any Internet user who is outside your domain can access your Google Groups service and view the list of groups in your Groups directory. Warning: Group owners can add external addresses, outside of the domain to their groups. They can also allow people outside your domain to join their groups. If you later disable this option, any external addresses already added to users' groups remain in those groups.

  • INVITED_CAN_JOIN: Candidates for membership can be invited to join.

  • CAN_REQUEST_TO_JOIN: Non members can request an invitation to join.

who_can_moderate_members: String

who_can_moderate_members: Specifies who can manage members. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
who_can_post_message: String

who_can_post_message: Permissions to post messages. Possible values are:

  • NONE_CAN_POST: The group is disabled and archived. No one can post a message to this group.

  • When archiveOnly is false, updating who_can_post_message to NONE_CAN_POST, results in an error.

  • If archiveOnly is reverted from true to false, who_can_post_messages is set to ALL_MANAGERS_CAN_POST.

  • ALL_MANAGERS_CAN_POST: Managers, including group owners, can post messages.

  • ALL_MEMBERS_CAN_POST: Any group member can post a message.

  • ALL_OWNERS_CAN_POST: Only group owners can post a message.

  • ALL_IN_DOMAIN_CAN_POST: Anyone in the account can post a message.

  • ANYONE_CAN_POST: Any Internet user who outside your account can access your Google Groups service and post a message. Note: When who_can_post_message is set to ANYONE_CAN_POST, we recommend the messageModerationLevel be set to MODERATE_NON_MEMBERS to protect the group from possible spam.

who_can_view_group: String

who_can_view_group: Permissions to view group messages. Possible values are:

  • ANYONE_CAN_VIEW: Any Internet user can view the group's messages.

  • ALL_IN_DOMAIN_CAN_VIEW: Anyone in your account can view this group's messages.

  • ALL_MEMBERS_CAN_VIEW: All group members can view the group's messages.

  • ALL_MANAGERS_CAN_VIEW: Any group manager can view this group's messages.

who_can_view_membership: String

who_can_view_membership: Permissions to view membership. Possible values are:

  • ALL_IN_DOMAIN_CAN_VIEW: Anyone in the account can view the group members list. If a group already has external members, those members can still send email to this group.

  • ALL_MEMBERS_CAN_VIEW: The group members can view the group members list.

  • ALL_MANAGERS_CAN_VIEW: The group managers can view group members list.

Trait Implementations

impl Clone for GroupConfig[src]

impl Debug for GroupConfig[src]

impl<'de> Deserialize<'de> for GroupConfig[src]

impl Serialize for GroupConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.