pulumi_wasm_providers_aws_mini::ec2::spot_fleet_request

Struct SpotFleetRequestArgsBuilder

source
pub struct SpotFleetRequestArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> SpotFleetRequestArgsBuilder<S>

source

pub fn build_struct(self) -> SpotFleetRequestArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn allocation_strategy( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetAllocationStrategy<S>>
where S::AllocationStrategy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is lowestPrice.

source

pub fn maybe_allocation_strategy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetAllocationStrategy<S>>
where S::AllocationStrategy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is lowestPrice.

source

pub fn context( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetContext<S>>
where S::Context: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Reserved.

source

pub fn maybe_context( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetContext<S>>
where S::Context: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Reserved.

source

pub fn excess_capacity_termination_policy( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetExcessCapacityTerminationPolicy<S>>
where S::ExcessCapacityTerminationPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

source

pub fn maybe_excess_capacity_termination_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetExcessCapacityTerminationPolicy<S>>
where S::ExcessCapacityTerminationPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

source

pub fn fleet_type( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetFleetType<S>>
where S::FleetType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

source

pub fn maybe_fleet_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetFleetType<S>>
where S::FleetType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

source

pub fn iam_fleet_role( self, value: impl Into<Output<String>>, ) -> SpotFleetRequestArgsBuilder<SetIamFleetRole<S>>
where S::IamFleetRole: IsUnset,

Required.

Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

source

pub fn instance_interruption_behaviour( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetInstanceInterruptionBehaviour<S>>
where S::InstanceInterruptionBehaviour: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

source

pub fn maybe_instance_interruption_behaviour( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetInstanceInterruptionBehaviour<S>>
where S::InstanceInterruptionBehaviour: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

source

pub fn instance_pools_to_use_count( self, value: impl Into<Output<Option<i32>>>, ) -> SpotFleetRequestArgsBuilder<SetInstancePoolsToUseCount<S>>
where S::InstancePoolsToUseCount: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

source

pub fn maybe_instance_pools_to_use_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotFleetRequestArgsBuilder<SetInstancePoolsToUseCount<S>>
where S::InstancePoolsToUseCount: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

source

pub fn launch_specifications( self, value: impl Into<Output<Option<Vec<SpotFleetRequestLaunchSpecification>>>>, ) -> SpotFleetRequestArgsBuilder<SetLaunchSpecifications<S>>
where S::LaunchSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::SpotFleetRequestLaunchSpecification>>,
> as Default>::default()

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

Note: This takes in similar but not identical inputs as aws.ec2.Instance. There are limitations on what you can specify. See the list of officially supported inputs in the reference documentation. Any normal aws.ec2.Instance parameter that corresponds to those inputs may be used and it have a additional parameter iam_instance_profile_arn takes aws.iam.InstanceProfile attribute arn as input.

source

pub fn maybe_launch_specifications( self, value: Option<impl Into<Output<Option<Vec<SpotFleetRequestLaunchSpecification>>>>>, ) -> SpotFleetRequestArgsBuilder<SetLaunchSpecifications<S>>
where S::LaunchSpecifications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::SpotFleetRequestLaunchSpecification>>,
> as Default>::default()

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

Note: This takes in similar but not identical inputs as aws.ec2.Instance. There are limitations on what you can specify. See the list of officially supported inputs in the reference documentation. Any normal aws.ec2.Instance parameter that corresponds to those inputs may be used and it have a additional parameter iam_instance_profile_arn takes aws.iam.InstanceProfile attribute arn as input.

source

pub fn launch_template_configs( self, value: impl Into<Output<Option<Vec<SpotFleetRequestLaunchTemplateConfig>>>>, ) -> SpotFleetRequestArgsBuilder<SetLaunchTemplateConfigs<S>>
where S::LaunchTemplateConfigs: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::SpotFleetRequestLaunchTemplateConfig>>,
> as Default>::default()

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

source

pub fn maybe_launch_template_configs( self, value: Option<impl Into<Output<Option<Vec<SpotFleetRequestLaunchTemplateConfig>>>>>, ) -> SpotFleetRequestArgsBuilder<SetLaunchTemplateConfigs<S>>
where S::LaunchTemplateConfigs: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::SpotFleetRequestLaunchTemplateConfig>>,
> as Default>::default()

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

source

pub fn load_balancers( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetLoadBalancers<S>>
where S::LoadBalancers: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of elastic load balancer names to add to the Spot fleet.

source

pub fn maybe_load_balancers( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> SpotFleetRequestArgsBuilder<SetLoadBalancers<S>>
where S::LoadBalancers: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of elastic load balancer names to add to the Spot fleet.

source

pub fn on_demand_allocation_strategy( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandAllocationStrategy<S>>
where S::OnDemandAllocationStrategy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice.

source

pub fn maybe_on_demand_allocation_strategy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandAllocationStrategy<S>>
where S::OnDemandAllocationStrategy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice.

source

pub fn on_demand_max_total_price( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandMaxTotalPrice<S>>
where S::OnDemandMaxTotalPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The maximum amount per hour for On-Demand Instances that you’re willing to pay. When the maximum amount you’re willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.

source

pub fn maybe_on_demand_max_total_price( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandMaxTotalPrice<S>>
where S::OnDemandMaxTotalPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The maximum amount per hour for On-Demand Instances that you’re willing to pay. When the maximum amount you’re willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.

source

pub fn on_demand_target_capacity( self, value: impl Into<Output<Option<i32>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandTargetCapacity<S>>
where S::OnDemandTargetCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

source

pub fn maybe_on_demand_target_capacity( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> SpotFleetRequestArgsBuilder<SetOnDemandTargetCapacity<S>>
where S::OnDemandTargetCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

source

pub fn replace_unhealthy_instances( self, value: impl Into<Output<Option<bool>>>, ) -> SpotFleetRequestArgsBuilder<SetReplaceUnhealthyInstances<S>>
where S::ReplaceUnhealthyInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether Spot fleet should replace unhealthy instances. Default false.

source

pub fn maybe_replace_unhealthy_instances( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotFleetRequestArgsBuilder<SetReplaceUnhealthyInstances<S>>
where S::ReplaceUnhealthyInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether Spot fleet should replace unhealthy instances. Default false.

source

pub fn spot_maintenance_strategies( self, value: impl Into<Output<Option<SpotFleetRequestSpotMaintenanceStrategies>>>, ) -> SpotFleetRequestArgsBuilder<SetSpotMaintenanceStrategies<S>>
where S::SpotMaintenanceStrategies: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::SpotFleetRequestSpotMaintenanceStrategies>,
> as Default>::default()

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

source

pub fn maybe_spot_maintenance_strategies( self, value: Option<impl Into<Output<Option<SpotFleetRequestSpotMaintenanceStrategies>>>>, ) -> SpotFleetRequestArgsBuilder<SetSpotMaintenanceStrategies<S>>
where S::SpotMaintenanceStrategies: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::SpotFleetRequestSpotMaintenanceStrategies>,
> as Default>::default()

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

source

pub fn spot_price( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The maximum bid price per unit hour.

source

pub fn maybe_spot_price( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The maximum bid price per unit hour.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> SpotFleetRequestArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> SpotFleetRequestArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn target_capacity( self, value: impl Into<Output<i32>>, ) -> SpotFleetRequestArgsBuilder<SetTargetCapacity<S>>
where S::TargetCapacity: IsUnset,

Required.

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.

source

pub fn target_capacity_unit_type( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetTargetCapacityUnitType<S>>
where S::TargetCapacityUnitType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The unit for the target capacity. This can only be done with instance_requirements defined

source

pub fn maybe_target_capacity_unit_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetTargetCapacityUnitType<S>>
where S::TargetCapacityUnitType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The unit for the target capacity. This can only be done with instance_requirements defined

source

pub fn target_group_arns( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetTargetGroupArns<S>>
where S::TargetGroupArns: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

source

pub fn maybe_target_group_arns( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> SpotFleetRequestArgsBuilder<SetTargetGroupArns<S>>
where S::TargetGroupArns: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

source

pub fn terminate_instances_on_delete( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetTerminateInstancesOnDelete<S>>
where S::TerminateInstancesOnDelete: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether running Spot instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). If no value is specified, the value of the terminate_instances_with_expiration argument is used.

source

pub fn maybe_terminate_instances_on_delete( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetTerminateInstancesOnDelete<S>>
where S::TerminateInstancesOnDelete: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Indicates whether running Spot instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). If no value is specified, the value of the terminate_instances_with_expiration argument is used.

source

pub fn terminate_instances_with_expiration( self, value: impl Into<Output<Option<bool>>>, ) -> SpotFleetRequestArgsBuilder<SetTerminateInstancesWithExpiration<S>>
where S::TerminateInstancesWithExpiration: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

source

pub fn maybe_terminate_instances_with_expiration( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotFleetRequestArgsBuilder<SetTerminateInstancesWithExpiration<S>>
where S::TerminateInstancesWithExpiration: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

source

pub fn valid_from( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

source

pub fn maybe_valid_from( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

source

pub fn valid_until( self, value: impl Into<Output<Option<String>>>, ) -> SpotFleetRequestArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.

source

pub fn maybe_valid_until( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SpotFleetRequestArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.

source

pub fn wait_for_fulfillment( self, value: impl Into<Output<Option<bool>>>, ) -> SpotFleetRequestArgsBuilder<SetWaitForFulfillment<S>>
where S::WaitForFulfillment: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

source

pub fn maybe_wait_for_fulfillment( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SpotFleetRequestArgsBuilder<SetWaitForFulfillment<S>>
where S::WaitForFulfillment: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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