Struct ProjectMethods

Source
pub struct ProjectMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the Monitoring hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_monitoring3 as monitoring3;

use monitoring3::{Monitoring, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http1()
        .build()
);
let mut hub = Monitoring::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `alert_policies_create(...)`, `alert_policies_delete(...)`, `alert_policies_get(...)`, `alert_policies_list(...)`, `alert_policies_patch(...)`, `collectd_time_series_create(...)`, `groups_create(...)`, `groups_delete(...)`, `groups_get(...)`, `groups_list(...)`, `groups_members_list(...)`, `groups_update(...)`, `metric_descriptors_create(...)`, `metric_descriptors_delete(...)`, `metric_descriptors_get(...)`, `metric_descriptors_list(...)`, `monitored_resource_descriptors_get(...)`, `monitored_resource_descriptors_list(...)`, `notification_channel_descriptors_get(...)`, `notification_channel_descriptors_list(...)`, `notification_channels_create(...)`, `notification_channels_delete(...)`, `notification_channels_get(...)`, `notification_channels_get_verification_code(...)`, `notification_channels_list(...)`, `notification_channels_patch(...)`, `notification_channels_send_verification_code(...)`, `notification_channels_verify(...)`, `snoozes_create(...)`, `snoozes_get(...)`, `snoozes_list(...)`, `snoozes_patch(...)`, `time_series_create(...)`, `time_series_create_service(...)`, `time_series_list(...)`, `time_series_query(...)`, `uptime_check_configs_create(...)`, `uptime_check_configs_delete(...)`, `uptime_check_configs_get(...)`, `uptime_check_configs_list(...)` and `uptime_check_configs_patch(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

impl<'a, C> ProjectMethods<'a, C>

Source

pub fn alert_policies_create( &self, request: AlertPolicy, name: &str, ) -> ProjectAlertPolicyCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) in which to create the alerting policy. The format is: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. |name| must be a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container.
Source

pub fn alert_policies_delete( &self, name: &str, ) -> ProjectAlertPolicyDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes an alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

§Arguments
  • name - Required. The alerting policy to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] For more information, see AlertPolicy.
Source

pub fn alert_policies_get(&self, name: &str) -> ProjectAlertPolicyGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single alerting policy.

§Arguments
  • name - Required. The alerting policy to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
Source

pub fn alert_policies_list( &self, name: &str, ) -> ProjectAlertPolicyListCall<'a, C>

Create a builder to help you perform the following task:

Lists the existing alerting policies for the workspace.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) whose alert policies are to be listed. The format is: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policies to be listed are stored. To retrieve a single alerting policy by name, use the GetAlertPolicy operation, instead.
Source

pub fn alert_policies_patch( &self, request: AlertPolicy, name: &str, ) -> ProjectAlertPolicyPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask. Returns the updated alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

§Arguments
  • request - No description provided.
  • name - Required if the policy exists. The resource name for this policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created. When calling the alertPolicies.create method, do not include the name field in the alerting policy passed as part of the request.
Source

pub fn collectd_time_series_create( &self, request: CreateCollectdTimeSeriesRequest, name: &str, ) -> ProjectCollectdTimeSeryCreateCall<'a, C>

Create a builder to help you perform the following task:

Cloud Monitoring Agent only: Creates a new time series.This method is only for use by the Cloud Monitoring Agent. Use projects.timeSeries.create instead.

§Arguments
  • request - No description provided.
  • name - The project (https://cloud.google.com/monitoring/api/v3#project_name) in which to create the time series. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn groups_members_list( &self, name: &str, ) -> ProjectGroupMemberListCall<'a, C>

Create a builder to help you perform the following task:

Lists the monitored resources that are members of a group.

§Arguments
  • name - Required. The group whose members are listed. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
Source

pub fn groups_create( &self, request: Group, name: &str, ) -> ProjectGroupCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new group.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) in which to create the group. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn groups_delete(&self, name: &str) -> ProjectGroupDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes an existing group.

§Arguments
  • name - Required. The group to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
Source

pub fn groups_get(&self, name: &str) -> ProjectGroupGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single group.

§Arguments
  • name - Required. The group to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
Source

pub fn groups_list(&self, name: &str) -> ProjectGroupListCall<'a, C>

Create a builder to help you perform the following task:

Lists the existing groups.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) whose groups are to be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn groups_update( &self, request: Group, name: &str, ) -> ProjectGroupUpdateCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing group. You can change any group attributes except name.

§Arguments
  • request - No description provided.
  • name - Output only. The name of this group. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique [GROUP_ID] that is generated automatically.
Source

pub fn metric_descriptors_create( &self, request: MetricDescriptor, name: &str, ) -> ProjectMetricDescriptorCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: 4 projects/PROJECT_ID_OR_NUMBER
Source

pub fn metric_descriptors_delete( &self, name: &str, ) -> ProjectMetricDescriptorDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a metric descriptor. Only user-created custom metrics (https://cloud.google.com/monitoring/custom-metrics) can be deleted.

§Arguments
  • name - Required. The metric descriptor on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example of [METRIC_ID] is: “custom.googleapis.com/my_test_metric”.
Source

pub fn metric_descriptors_get( &self, name: &str, ) -> ProjectMetricDescriptorGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single metric descriptor.

§Arguments
  • name - Required. The metric descriptor on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example value of [METRIC_ID] is “compute.googleapis.com/instance/disk/read_bytes_count”.
Source

pub fn metric_descriptors_list( &self, name: &str, ) -> ProjectMetricDescriptorListCall<'a, C>

Create a builder to help you perform the following task:

Lists metric descriptors that match a filter.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn monitored_resource_descriptors_get( &self, name: &str, ) -> ProjectMonitoredResourceDescriptorGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single monitored resource descriptor.

§Arguments
  • name - Required. The monitored resource descriptor to get. The format is: projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.
Source

pub fn monitored_resource_descriptors_list( &self, name: &str, ) -> ProjectMonitoredResourceDescriptorListCall<'a, C>

Create a builder to help you perform the following task:

Lists monitored resource descriptors that match a filter.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn notification_channel_descriptors_get( &self, name: &str, ) -> ProjectNotificationChannelDescriptorGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.

§Arguments
  • name - Required. The channel type for which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
Source

pub fn notification_channel_descriptors_list( &self, name: &str, ) -> ProjectNotificationChannelDescriptorListCall<'a, C>

Create a builder to help you perform the following task:

Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.

§Arguments
  • name - Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. The expected syntax is: projects/[PROJECT_ID_OR_NUMBER] Note that this names (https://cloud.google.com/monitoring/api/v3#project_name) the parent container in which to look for the descriptors; to retrieve a single descriptor by name, use the GetNotificationChannelDescriptor operation, instead.
Source

pub fn notification_channels_create( &self, request: NotificationChannel, name: &str, ) -> ProjectNotificationChannelCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel’s name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.
Source

pub fn notification_channels_delete( &self, name: &str, ) -> ProjectNotificationChannelDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a notification channel.Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

§Arguments
  • name - Required. The channel for which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Source

pub fn notification_channels_get( &self, name: &str, ) -> ProjectNotificationChannelGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method.

§Arguments
  • name - Required. The channel for which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Source

pub fn notification_channels_get_verification_code( &self, request: GetNotificationChannelVerificationCodeRequest, name: &str, ) -> ProjectNotificationChannelGetVerificationCodeCall<'a, C>

Create a builder to help you perform the following task:

Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring manual reverification of the channel. If the channel is not in the verified state, this method will fail (in other words, this may only be used if the SendNotificationChannelVerificationCode and VerifyNotificationChannel paths have already been used to put the given channel into the verified state).There is no guarantee that the verification codes returned by this method will be of a similar structure or form as the ones that are delivered to the channel via SendNotificationChannelVerificationCode; while VerifyNotificationChannel() will recognize both the codes delivered via SendNotificationChannelVerificationCode() and returned from GetNotificationChannelVerificationCode(), it is typically the case that the verification codes delivered via SendNotificationChannelVerificationCode() will be shorter and also have a shorter expiration (e.g. codes such as “G-123456”) whereas GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time.

§Arguments
  • request - No description provided.
  • name - Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.
Source

pub fn notification_channels_list( &self, name: &str, ) -> ProjectNotificationChannelListCall<'a, C>

Create a builder to help you perform the following task:

Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container in which to look for the notification channels; it does not name a specific channel. To query a specific channel by REST resource name, use the GetNotificationChannel operation.
Source

pub fn notification_channels_patch( &self, request: NotificationChannel, name: &str, ) -> ProjectNotificationChannelPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a notification channel. Fields not specified in the field mask remain unchanged.Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

§Arguments
  • request - No description provided.
  • name - The full REST resource name for this channel. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is automatically assigned by the server on creation.
Source

pub fn notification_channels_send_verification_code( &self, request: SendNotificationChannelVerificationCodeRequest, name: &str, ) -> ProjectNotificationChannelSendVerificationCodeCall<'a, C>

Create a builder to help you perform the following task:

Causes a verification code to be delivered to the channel. The code can then be supplied in VerifyNotificationChannel to verify the channel.

§Arguments
  • request - No description provided.
  • name - Required. The notification channel to which to send a verification code.
Source

pub fn notification_channels_verify( &self, request: VerifyNotificationChannelRequest, name: &str, ) -> ProjectNotificationChannelVerifyCall<'a, C>

Create a builder to help you perform the following task:

Verifies a NotificationChannel by proving receipt of the code delivered to the channel as a result of calling SendNotificationChannelVerificationCode.

§Arguments
  • request - No description provided.
  • name - Required. The notification channel to verify.
Source

pub fn snoozes_create( &self, request: Snooze, parent: &str, ) -> ProjectSnoozeCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval.

§Arguments
  • request - No description provided.
  • parent - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) in which a Snooze should be created. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn snoozes_get(&self, name: &str) -> ProjectSnoozeGetCall<'a, C>

Create a builder to help you perform the following task:

Retrieves a Snooze by name.

§Arguments
  • name - Required. The ID of the Snooze to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
Source

pub fn snoozes_list(&self, parent: &str) -> ProjectSnoozeListCall<'a, C>

Create a builder to help you perform the following task:

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.

§Arguments
  • parent - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn snoozes_patch( &self, request: Snooze, name: &str, ) -> ProjectSnoozePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a Snooze, identified by its name, with the parameters in the given Snooze object.

§Arguments
  • request - No description provided.
  • name - Required. Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
Source

pub fn time_series_create( &self, request: CreateTimeSeriesRequest, name: &str, ) -> ProjectTimeSeryCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn time_series_create_service( &self, request: CreateTimeSeriesRequest, name: &str, ) -> ProjectTimeSeryCreateServiceCall<'a, C>

Create a builder to help you perform the following task:

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use projects.timeSeries.create instead.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn time_series_list(&self, name: &str) -> ProjectTimeSeryListCall<'a, C>

Create a builder to help you perform the following task:

Lists time series that match a filter.

§Arguments
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name), organization or folder on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]
Source

pub fn time_series_query( &self, request: QueryTimeSeriesRequest, name: &str, ) -> ProjectTimeSeryQueryCall<'a, C>

Create a builder to help you perform the following task:

Queries time series using Monitoring Query Language.

§Arguments
  • request - No description provided.
  • name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn uptime_check_configs_create( &self, request: UptimeCheckConfig, parent: &str, ) -> ProjectUptimeCheckConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new Uptime check configuration.

§Arguments
  • request - No description provided.
  • parent - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) in which to create the Uptime check. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn uptime_check_configs_delete( &self, name: &str, ) -> ProjectUptimeCheckConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes an Uptime check configuration. Note that this method will fail if the Uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.

§Arguments
  • name - Required. The Uptime check configuration to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
Source

pub fn uptime_check_configs_get( &self, name: &str, ) -> ProjectUptimeCheckConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a single Uptime check configuration.

§Arguments
  • name - Required. The Uptime check configuration to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
Source

pub fn uptime_check_configs_list( &self, parent: &str, ) -> ProjectUptimeCheckConfigListCall<'a, C>

Create a builder to help you perform the following task:

Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations).

§Arguments
  • parent - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) whose Uptime check configurations are listed. The format is: projects/[PROJECT_ID_OR_NUMBER]
Source

pub fn uptime_check_configs_patch( &self, request: UptimeCheckConfig, name: &str, ) -> ProjectUptimeCheckConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an Uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via updateMask. Returns the updated configuration.

§Arguments
  • request - No description provided.
  • name - Identifier. A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for ProjectMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>

§

impl<'a, C> Send for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for ProjectMethods<'a, C>

§

impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>

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> 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, 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> ErasedDestructor for T
where T: 'static,