google_groupssettings1::api

Struct Groups

source
pub struct Groups {
Show 62 fields pub allow_external_members: Option<String>, pub allow_google_communication: Option<String>, pub allow_web_posting: Option<String>, pub archive_only: Option<String>, pub custom_footer_text: Option<String>, pub custom_reply_to: Option<String>, pub custom_roles_enabled_for_settings_to_be_merged: Option<String>, pub default_message_deny_notification_text: Option<String>, pub default_sender: Option<String>, pub description: Option<String>, pub email: Option<String>, pub enable_collaborative_inbox: Option<String>, pub favorite_replies_on_top: Option<String>, pub include_custom_footer: Option<String>, pub include_in_global_address_list: Option<String>, pub is_archived: Option<String>, pub kind: Option<String>, pub max_message_bytes: Option<i32>, pub members_can_post_as_the_group: Option<String>, pub message_display_font: Option<String>, pub message_moderation_level: Option<String>, pub name: Option<String>, pub primary_language: Option<String>, pub reply_to: Option<String>, pub send_message_deny_notification: Option<String>, pub show_in_group_directory: Option<String>, pub spam_moderation_level: Option<String>, pub who_can_add: Option<String>, pub who_can_add_references: Option<String>, pub who_can_approve_members: Option<String>, pub who_can_approve_messages: Option<String>, pub who_can_assign_topics: Option<String>, pub who_can_assist_content: Option<String>, pub who_can_ban_users: Option<String>, pub who_can_contact_owner: Option<String>, pub who_can_delete_any_post: Option<String>, pub who_can_delete_topics: Option<String>, pub who_can_discover_group: Option<String>, pub who_can_enter_free_form_tags: Option<String>, pub who_can_hide_abuse: Option<String>, pub who_can_invite: Option<String>, pub who_can_join: Option<String>, pub who_can_leave_group: Option<String>, pub who_can_lock_topics: Option<String>, pub who_can_make_topics_sticky: Option<String>, pub who_can_mark_duplicate: Option<String>, pub who_can_mark_favorite_reply_on_any_topic: Option<String>, pub who_can_mark_favorite_reply_on_own_topic: Option<String>, pub who_can_mark_no_response_needed: Option<String>, pub who_can_moderate_content: Option<String>, pub who_can_moderate_members: Option<String>, pub who_can_modify_members: Option<String>, pub who_can_modify_tags_and_categories: Option<String>, pub who_can_move_topics_in: Option<String>, pub who_can_move_topics_out: Option<String>, pub who_can_post_announcements: Option<String>, pub who_can_post_message: Option<String>, pub who_can_take_topics: Option<String>, pub who_can_unassign_topic: Option<String>, pub who_can_unmark_favorite_reply_on_any_topic: Option<String>, pub who_can_view_group: Option<String>, pub who_can_view_membership: Option<String>,
}
Expand description

JSON template for Group resource

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§allow_external_members: Option<String>

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_google_communication: Option<String>

Deprecated. Allows Google to contact administrator of the group.

  • true: Allow Google to contact managers of this group. Occasionally Google may send updates on the latest features, ask for input on new features, or ask for permission to highlight your group.
  • false: Google can not contact managers of this group.
§allow_web_posting: Option<String>

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.
§archive_only: Option<String>

Allows the group to be archived only. Possible values are:

  • true: Group is archived and the group is inactive. New messages to this group are rejected. The older archived messages are browseable and searchable.
  • If true, the whoCanPostMessage property is set to NONE_CAN_POST.
  • If reverted from true to false, whoCanPostMessages is set to ALL_MANAGERS_CAN_POST.
  • false: The group is active and can receive messages.
  • When false, updating whoCanPostMessage to NONE_CAN_POST, results in an error.
§custom_footer_text: Option<String>

Set the content of custom footer text. The maximum number of characters is 1,000.

§custom_reply_to: Option<String>

An email address used when replying to a message if the replyTo property is set to REPLY_TO_CUSTOM. This address is defined by an account administrator.

  • When the group’s ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property holds a custom email address used when replying to a message.
  • If the group’s ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property must have a text value or an error is returned.
§custom_roles_enabled_for_settings_to_be_merged: Option<String>

Specifies whether the group has a custom role that’s included in one of the settings being merged. This field is read-only and update/patch requests to it are ignored. Possible values are:

  • true
  • false
§default_message_deny_notification_text: Option<String>

When a message is rejected, this is text for the rejection notification sent to the message’s author. By default, this property is empty and has no value in the API’s response body. The maximum notification text size is 10,000 characters. Note: Requires sendMessageDenyNotification property to be true.

§default_sender: Option<String>

Default sender for members who can post messages as the group. Possible values are: - DEFAULT_SELF: By default messages will be sent from the user - GROUP: By default messages will be sent from the group

§description: Option<String>

Description of the group. This property value may be an empty string if no group description has been entered. If entered, the maximum group description is no more than 300 characters.

§email: Option<String>

The group’s email address. This property can be updated using the Directory API. Note: Only a group owner can change a group’s email address. A group manager can’t do this. When you change your group’s address using the Directory API or the control panel, you are changing the address your subscribers use to send email and the web address people use to access your group. People can’t reach your group by visiting the old address.

§enable_collaborative_inbox: Option<String>

Specifies whether a collaborative inbox will remain turned on for the group. Possible values are:

  • true
  • false
§favorite_replies_on_top: Option<String>

Indicates if favorite replies should be displayed above other replies.

  • true: Favorite replies will be displayed above other replies.
  • false: Favorite replies will not be displayed above other replies.
§include_custom_footer: Option<String>

Whether to include custom footer. Possible values are:

  • true
  • false
§include_in_global_address_list: Option<String>

Enables the group to be included in the Global Address List. For more information, see the help center. Possible values are:

  • true: Group is included in the Global Address List.
  • false: Group is not included in the Global Address List.
§is_archived: Option<String>

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.
§kind: Option<String>

The type of the resource. It is always groupsSettings#groups.

§max_message_bytes: Option<i32>

Deprecated. The maximum size of a message is 25Mb.

§members_can_post_as_the_group: Option<String>

Enables members to post messages as the group. Possible values are:

  • true: Group member can post messages using the group’s email address instead of their own email address. Message appear to originate from the group itself. Note: When true, any message moderation settings on individual users or new members do not apply to posts made on behalf of the group.
  • false: Members can not post in behalf of the group’s email address.
§message_display_font: Option<String>

Deprecated. The default message display font always has a value of “DEFAULT_FONT”.

§message_moderation_level: Option<String>

Moderation level of incoming messages. Possible values are:

  • MODERATE_ALL_MESSAGES: All messages are sent to the group owner’s email address for approval. If approved, the message is sent to the group.
  • MODERATE_NON_MEMBERS: All messages from non group members are sent to the group owner’s email address for approval. If approved, the message is sent to the group.
  • MODERATE_NEW_MEMBERS: All messages from new members are sent to the group owner’s email address for approval. If approved, the message is sent to the group.
  • MODERATE_NONE: No moderator approval is required. Messages are delivered directly to the group. Note: When the whoCanPostMessage is set to ANYONE_CAN_POST, we recommend the messageModerationLevel be set to MODERATE_NON_MEMBERS to protect the group from possible spam. When memberCanPostAsTheGroup is true, any message moderation settings on individual users or new members will not apply to posts made on behalf of the group.
§name: Option<String>

Name of the group, which has a maximum size of 75 characters.

§primary_language: Option<String>

The primary language for group. For a group’s primary language use the language tags from the G Suite languages found at G Suite Email Settings API Email Language Tags.

§reply_to: Option<String>

Specifies who receives the default reply. Possible values are:

  • REPLY_TO_CUSTOM: For replies to messages, use the group’s custom email address. When the group’s ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property holds the custom email address used when replying to a message. If the group’s ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property must have a value. Otherwise an error is returned.

  • REPLY_TO_SENDER: The reply sent to author of message.

  • REPLY_TO_LIST: This reply message is sent to the group.

  • REPLY_TO_OWNER: The reply is sent to the owner(s) of the group. This does not include the group’s managers.

  • REPLY_TO_IGNORE: Group users individually decide where the message reply is sent.

  • REPLY_TO_MANAGERS: This reply message is sent to the group’s managers, which includes all managers and the group owner.

§send_message_deny_notification: Option<String>

Allows a member to be notified if the member’s message to the group is denied by the group owner. Possible values are:

  • true: When a message is rejected, send the deny message notification to the message author. The defaultMessageDenyNotificationText property is dependent on the sendMessageDenyNotification property being true.

  • false: When a message is rejected, no notification is sent.

§show_in_group_directory: Option<String>

Deprecated. This is merged into the new whoCanDiscoverGroup setting. Allows the group to be visible in the Groups Directory. Possible values are:

  • true: All groups in the account are listed in the Groups directory.
  • false: All groups in the account are not listed in the directory.
§spam_moderation_level: Option<String>

Specifies moderation levels for messages detected as spam. Possible values are:

  • ALLOW: Post the message to the group.
  • MODERATE: Send the message to the moderation queue. This is the default.
  • SILENTLY_MODERATE: Send the message to the moderation queue, but do not send notification to moderators.
  • REJECT: Immediately reject the message.
§who_can_add: Option<String>

Deprecated. This is merged into the new whoCanModerateMembers setting. Permissions to add members. Possible values are:

  • ALL_MEMBERS_CAN_ADD: Managers and members can directly add new members.
  • ALL_MANAGERS_CAN_ADD: Only managers can directly add new members. this includes the group’s owner.
  • ALL_OWNERS_CAN_ADD: Only owners can directly add new members.
  • NONE_CAN_ADD: No one can directly add new members.
§who_can_add_references: Option<String>

Deprecated. This functionality is no longer supported in the Google Groups UI. The value is always “NONE”.

§who_can_approve_members: Option<String>

Specifies who can approve members who ask to join groups. This permission will be deprecated once it is merged into the new whoCanModerateMembers setting. Possible values are:

  • ALL_MEMBERS_CAN_APPROVE
  • ALL_MANAGERS_CAN_APPROVE
  • ALL_OWNERS_CAN_APPROVE
  • NONE_CAN_APPROVE
§who_can_approve_messages: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can approve pending messages in the moderation queue. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_assign_topics: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to assign topics in a forum to another user. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_assist_content: Option<String>

Specifies who can moderate metadata. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_ban_users: Option<String>

Specifies who can deny membership to users. This permission will be deprecated once it is merged into the new whoCanModerateMembers setting. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_contact_owner: Option<String>

Permission to contact owner of the group via web UI. Possible values are:

  • ALL_IN_DOMAIN_CAN_CONTACT
  • ALL_MANAGERS_CAN_CONTACT
  • ALL_MEMBERS_CAN_CONTACT
  • ANYONE_CAN_CONTACT
  • ALL_OWNERS_CAN_CONTACT
§who_can_delete_any_post: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can delete replies to topics. (Authors can always delete their own posts). Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_delete_topics: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can delete topics. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_discover_group: Option<String>

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_enter_free_form_tags: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to enter free form tags for topics in a forum. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_hide_abuse: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can hide posts by reporting them as abuse. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_invite: Option<String>

Deprecated. This is merged into the new whoCanModerateMembers setting. Permissions to invite new members. Possible values are:

  • ALL_MEMBERS_CAN_INVITE: Managers and members can invite a new member candidate.
  • ALL_MANAGERS_CAN_INVITE: Only managers can invite a new member. This includes the group’s owner.
  • ALL_OWNERS_CAN_INVITE: Only owners can invite a new member.
  • NONE_CAN_INVITE: No one can invite a new member candidate.
§who_can_join: Option<String>

Permission to join group. Possible values are:

  • ANYONE_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.
  • ALL_IN_DOMAIN_CAN_JOIN: Anyone in the account domain can join. This includes accounts with multiple domains.
  • 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_leave_group: Option<String>

Permission to leave the group. Possible values are:

  • ALL_MANAGERS_CAN_LEAVE
  • ALL_MEMBERS_CAN_LEAVE
  • NONE_CAN_LEAVE
§who_can_lock_topics: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can prevent users from posting replies to topics. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_make_topics_sticky: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can make topics appear at the top of the topic list. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_mark_duplicate: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a topic as a duplicate of another topic. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_mark_favorite_reply_on_any_topic: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark any other user’s post as a favorite reply. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_mark_favorite_reply_on_own_topic: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a post for a topic they started as a favorite reply. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_mark_no_response_needed: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a topic as not needing a response. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_moderate_content: Option<String>

Specifies who can moderate content. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_moderate_members: Option<String>

Specifies who can manage members. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_modify_members: Option<String>

Deprecated. This is merged into the new whoCanModerateMembers setting. Specifies who can change group members’ roles. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_modify_tags_and_categories: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to change tags and categories. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_move_topics_in: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can move topics into the group or forum. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_move_topics_out: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can move topics out of the group or forum. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_post_announcements: Option<String>

Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can post announcements, a special topic type. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • OWNERS_ONLY
  • NONE
§who_can_post_message: Option<String>

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 whoCanPostMessage to NONE_CAN_POST, results in an error.
  • If archiveOnly is reverted from true to false, whoCanPostMessages 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 whoCanPostMessage 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_take_topics: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to take topics in a forum. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_unassign_topic: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to unassign any topic in a forum. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_unmark_favorite_reply_on_any_topic: Option<String>

Deprecated. This is merged into the new whoCanAssistContent setting. Permission to unmark any post from a favorite reply. Possible values are:

  • ALL_MEMBERS
  • OWNERS_AND_MANAGERS
  • MANAGERS_ONLY
  • OWNERS_ONLY
  • NONE
§who_can_view_group: Option<String>

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: Option<String>

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§

source§

impl Clone for Groups

source§

fn clone(&self) -> Groups

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Groups

source§

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

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

impl Default for Groups

source§

fn default() -> Groups

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

impl<'de> Deserialize<'de> for Groups

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 Serialize for Groups

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 RequestValue for Groups

source§

impl ResponseResult for Groups

Auto Trait Implementations§

§

impl Freeze for Groups

§

impl RefUnwindSafe for Groups

§

impl Send for Groups

§

impl Sync for Groups

§

impl Unpin for Groups

§

impl UnwindSafe for Groups

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 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 = 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.
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
source§

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