Skip to main content

Route

Struct Route 

Source
#[non_exhaustive]
pub struct Route {
Show 27 fields pub as_paths: Vec<RouteAsPath>, pub creation_timestamp: Option<String>, pub description: Option<String>, pub dest_range: Option<String>, pub id: Option<u64>, pub kind: Option<String>, pub name: Option<String>, pub network: Option<String>, pub next_hop_gateway: Option<String>, pub next_hop_hub: Option<String>, pub next_hop_ilb: Option<String>, pub next_hop_instance: Option<String>, pub next_hop_inter_region_cost: Option<u32>, pub next_hop_interconnect_attachment: Option<String>, pub next_hop_ip: Option<String>, pub next_hop_med: Option<u32>, pub next_hop_network: Option<String>, pub next_hop_origin: Option<NextHopOrigin>, pub next_hop_peering: Option<String>, pub next_hop_vpn_tunnel: Option<String>, pub params: Option<RouteParams>, pub priority: Option<u32>, pub route_status: Option<RouteStatus>, pub route_type: Option<RouteType>, pub self_link: Option<String>, pub tags: Vec<String>, pub warnings: Vec<Warnings>, /* private fields */
}
Available on crate features routers or routes only.
Expand description

Represents a Route resource.

A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read theRoutes overview.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§as_paths: Vec<RouteAsPath>

Output only. [Output Only] AS path.

§creation_timestamp: Option<String>

Output only. [Output Only] Creation timestamp inRFC3339 text format.

§description: Option<String>

An optional description of this resource. Provide this field when you create the resource.

§dest_range: Option<String>

The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format.

§id: Option<u64>

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

§kind: Option<String>

Output only. [Output Only] Type of this resource. Always compute#routes for Route resources.

§name: Option<String>

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.

§network: Option<String>

Fully-qualified URL of the network that this route applies to.

§next_hop_gateway: Option<String>

The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway

§next_hop_hub: Option<String>

Output only. [Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.

§next_hop_ilb: Option<String>

The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs:

  - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
  • regions/region/forwardingRules/forwardingRule

If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 address in RFC 4291 format. For example, the following are all valid IP addresses:

  - 10.128.0.56
  - 2001:db8::2d9:51:0:0
  - 2001:db8:0:0:2d9:51:0:0

IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.

§next_hop_instance: Option<String>

The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/

§next_hop_inter_region_cost: Option<u32>

Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.

§next_hop_interconnect_attachment: Option<String>

Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for dynamic routes generated by Cloud Router with a linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment.

§next_hop_ip: Option<String>

The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.

§next_hop_med: Option<u32>

Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.

§next_hop_network: Option<String>

The URL of the local network if it should handle matching packets.

§next_hop_origin: Option<NextHopOrigin>

Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.

§next_hop_peering: Option<String>

Output only. [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.

§next_hop_vpn_tunnel: Option<String>

The URL to a VpnTunnel that should handle matching packets.

§params: Option<RouteParams>

Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.

§priority: Option<u32>

The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 0 to 65535, inclusive.

§route_status: Option<RouteStatus>

[Output only] The status of the route. This status applies to dynamic routes learned by Cloud Routers. It is also applicable to routes undergoing migration.

§route_type: Option<RouteType>

Output only. [Output Only] The type of this route, which can be one of the following values:

  • ‘TRANSIT’ for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers
  • ‘SUBNET’ for a route from a subnet of the VPC
  • ‘BGP’ for a route learned from a BGP peer of this router
  • ‘STATIC’ for a static route
§self_link: Option<String>

[Output Only] Server-defined fully-qualified URL for this resource.

§tags: Vec<String>

A list of instance tags to which this route applies.

§warnings: Vec<Warnings>

Output only. [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

Implementations§

Source§

impl Route

Source

pub fn new() -> Self

Source

pub fn set_as_paths<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<RouteAsPath>,

Sets the value of as_paths.

§Example
use google_cloud_compute_v1::model::RouteAsPath;
let x = Route::new()
    .set_as_paths([
        RouteAsPath::default()/* use setters */,
        RouteAsPath::default()/* use (different) setters */,
    ]);
Source

pub fn set_creation_timestamp<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of creation_timestamp.

§Example
let x = Route::new().set_creation_timestamp("example");
Source

pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of creation_timestamp.

§Example
let x = Route::new().set_or_clear_creation_timestamp(Some("example"));
let x = Route::new().set_or_clear_creation_timestamp(None::<String>);
Source

pub fn set_description<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of description.

§Example
let x = Route::new().set_description("example");
Source

pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of description.

§Example
let x = Route::new().set_or_clear_description(Some("example"));
let x = Route::new().set_or_clear_description(None::<String>);
Source

pub fn set_dest_range<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of dest_range.

§Example
let x = Route::new().set_dest_range("example");
Source

pub fn set_or_clear_dest_range<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of dest_range.

§Example
let x = Route::new().set_or_clear_dest_range(Some("example"));
let x = Route::new().set_or_clear_dest_range(None::<String>);
Source

pub fn set_id<T>(self, v: T) -> Self
where T: Into<u64>,

Sets the value of id.

§Example
let x = Route::new().set_id(42_u32);
Source

pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
where T: Into<u64>,

Sets or clears the value of id.

§Example
let x = Route::new().set_or_clear_id(Some(42_u32));
let x = Route::new().set_or_clear_id(None::<u32>);
Source

pub fn set_kind<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of kind.

§Example
let x = Route::new().set_kind("example");
Source

pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of kind.

§Example
let x = Route::new().set_or_clear_kind(Some("example"));
let x = Route::new().set_or_clear_kind(None::<String>);
Source

pub fn set_name<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of name.

§Example
let x = Route::new().set_name("example");
Source

pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of name.

§Example
let x = Route::new().set_or_clear_name(Some("example"));
let x = Route::new().set_or_clear_name(None::<String>);
Source

pub fn set_network<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of network.

§Example
let x = Route::new().set_network("example");
Source

pub fn set_or_clear_network<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of network.

§Example
let x = Route::new().set_or_clear_network(Some("example"));
let x = Route::new().set_or_clear_network(None::<String>);
Source

pub fn set_next_hop_gateway<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_gateway.

§Example
let x = Route::new().set_next_hop_gateway("example");
Source

pub fn set_or_clear_next_hop_gateway<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_gateway.

§Example
let x = Route::new().set_or_clear_next_hop_gateway(Some("example"));
let x = Route::new().set_or_clear_next_hop_gateway(None::<String>);
Source

pub fn set_next_hop_hub<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_hub.

§Example
let x = Route::new().set_next_hop_hub("example");
Source

pub fn set_or_clear_next_hop_hub<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_hub.

§Example
let x = Route::new().set_or_clear_next_hop_hub(Some("example"));
let x = Route::new().set_or_clear_next_hop_hub(None::<String>);
Source

pub fn set_next_hop_ilb<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_ilb.

§Example
let x = Route::new().set_next_hop_ilb("example");
Source

pub fn set_or_clear_next_hop_ilb<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_ilb.

§Example
let x = Route::new().set_or_clear_next_hop_ilb(Some("example"));
let x = Route::new().set_or_clear_next_hop_ilb(None::<String>);
Source

pub fn set_next_hop_instance<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_instance.

§Example
let x = Route::new().set_next_hop_instance("example");
Source

pub fn set_or_clear_next_hop_instance<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_instance.

§Example
let x = Route::new().set_or_clear_next_hop_instance(Some("example"));
let x = Route::new().set_or_clear_next_hop_instance(None::<String>);
Source

pub fn set_next_hop_inter_region_cost<T>(self, v: T) -> Self
where T: Into<u32>,

Sets the value of next_hop_inter_region_cost.

§Example
let x = Route::new().set_next_hop_inter_region_cost(42_u32);
Source

pub fn set_or_clear_next_hop_inter_region_cost<T>(self, v: Option<T>) -> Self
where T: Into<u32>,

Sets or clears the value of next_hop_inter_region_cost.

§Example
let x = Route::new().set_or_clear_next_hop_inter_region_cost(Some(42_u32));
let x = Route::new().set_or_clear_next_hop_inter_region_cost(None::<u32>);
Source

pub fn set_next_hop_interconnect_attachment<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_interconnect_attachment.

§Example
let x = Route::new().set_next_hop_interconnect_attachment("example");
Source

pub fn set_or_clear_next_hop_interconnect_attachment<T>( self, v: Option<T>, ) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_interconnect_attachment.

§Example
let x = Route::new().set_or_clear_next_hop_interconnect_attachment(Some("example"));
let x = Route::new().set_or_clear_next_hop_interconnect_attachment(None::<String>);
Source

pub fn set_next_hop_ip<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_ip.

§Example
let x = Route::new().set_next_hop_ip("example");
Source

pub fn set_or_clear_next_hop_ip<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_ip.

§Example
let x = Route::new().set_or_clear_next_hop_ip(Some("example"));
let x = Route::new().set_or_clear_next_hop_ip(None::<String>);
Source

pub fn set_next_hop_med<T>(self, v: T) -> Self
where T: Into<u32>,

Sets the value of next_hop_med.

§Example
let x = Route::new().set_next_hop_med(42_u32);
Source

pub fn set_or_clear_next_hop_med<T>(self, v: Option<T>) -> Self
where T: Into<u32>,

Sets or clears the value of next_hop_med.

§Example
let x = Route::new().set_or_clear_next_hop_med(Some(42_u32));
let x = Route::new().set_or_clear_next_hop_med(None::<u32>);
Source

pub fn set_next_hop_network<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_network.

§Example
let x = Route::new().set_next_hop_network("example");
Source

pub fn set_or_clear_next_hop_network<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_network.

§Example
let x = Route::new().set_or_clear_next_hop_network(Some("example"));
let x = Route::new().set_or_clear_next_hop_network(None::<String>);
Source

pub fn set_next_hop_origin<T>(self, v: T) -> Self
where T: Into<NextHopOrigin>,

Sets the value of next_hop_origin.

§Example
use google_cloud_compute_v1::model::route::NextHopOrigin;
let x0 = Route::new().set_next_hop_origin(NextHopOrigin::Igp);
let x1 = Route::new().set_next_hop_origin(NextHopOrigin::Incomplete);
Source

pub fn set_or_clear_next_hop_origin<T>(self, v: Option<T>) -> Self
where T: Into<NextHopOrigin>,

Sets or clears the value of next_hop_origin.

§Example
use google_cloud_compute_v1::model::route::NextHopOrigin;
let x0 = Route::new().set_or_clear_next_hop_origin(Some(NextHopOrigin::Igp));
let x1 = Route::new().set_or_clear_next_hop_origin(Some(NextHopOrigin::Incomplete));
let x_none = Route::new().set_or_clear_next_hop_origin(None::<NextHopOrigin>);
Source

pub fn set_next_hop_peering<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_peering.

§Example
let x = Route::new().set_next_hop_peering("example");
Source

pub fn set_or_clear_next_hop_peering<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_peering.

§Example
let x = Route::new().set_or_clear_next_hop_peering(Some("example"));
let x = Route::new().set_or_clear_next_hop_peering(None::<String>);
Source

pub fn set_next_hop_vpn_tunnel<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of next_hop_vpn_tunnel.

§Example
let x = Route::new().set_next_hop_vpn_tunnel("example");
Source

pub fn set_or_clear_next_hop_vpn_tunnel<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of next_hop_vpn_tunnel.

§Example
let x = Route::new().set_or_clear_next_hop_vpn_tunnel(Some("example"));
let x = Route::new().set_or_clear_next_hop_vpn_tunnel(None::<String>);
Source

pub fn set_params<T>(self, v: T) -> Self
where T: Into<RouteParams>,

Sets the value of params.

§Example
use google_cloud_compute_v1::model::RouteParams;
let x = Route::new().set_params(RouteParams::default()/* use setters */);
Source

pub fn set_or_clear_params<T>(self, v: Option<T>) -> Self
where T: Into<RouteParams>,

Sets or clears the value of params.

§Example
use google_cloud_compute_v1::model::RouteParams;
let x = Route::new().set_or_clear_params(Some(RouteParams::default()/* use setters */));
let x = Route::new().set_or_clear_params(None::<RouteParams>);
Source

pub fn set_priority<T>(self, v: T) -> Self
where T: Into<u32>,

Sets the value of priority.

§Example
let x = Route::new().set_priority(42_u32);
Source

pub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
where T: Into<u32>,

Sets or clears the value of priority.

§Example
let x = Route::new().set_or_clear_priority(Some(42_u32));
let x = Route::new().set_or_clear_priority(None::<u32>);
Source

pub fn set_route_status<T>(self, v: T) -> Self
where T: Into<RouteStatus>,

Sets the value of route_status.

§Example
use google_cloud_compute_v1::model::route::RouteStatus;
let x0 = Route::new().set_route_status(RouteStatus::Dropped);
let x1 = Route::new().set_route_status(RouteStatus::Inactive);
let x2 = Route::new().set_route_status(RouteStatus::Pending);
Source

pub fn set_or_clear_route_status<T>(self, v: Option<T>) -> Self
where T: Into<RouteStatus>,

Sets or clears the value of route_status.

§Example
use google_cloud_compute_v1::model::route::RouteStatus;
let x0 = Route::new().set_or_clear_route_status(Some(RouteStatus::Dropped));
let x1 = Route::new().set_or_clear_route_status(Some(RouteStatus::Inactive));
let x2 = Route::new().set_or_clear_route_status(Some(RouteStatus::Pending));
let x_none = Route::new().set_or_clear_route_status(None::<RouteStatus>);
Source

pub fn set_route_type<T>(self, v: T) -> Self
where T: Into<RouteType>,

Sets the value of route_type.

§Example
use google_cloud_compute_v1::model::route::RouteType;
let x0 = Route::new().set_route_type(RouteType::Static);
let x1 = Route::new().set_route_type(RouteType::Subnet);
let x2 = Route::new().set_route_type(RouteType::Transit);
Source

pub fn set_or_clear_route_type<T>(self, v: Option<T>) -> Self
where T: Into<RouteType>,

Sets or clears the value of route_type.

§Example
use google_cloud_compute_v1::model::route::RouteType;
let x0 = Route::new().set_or_clear_route_type(Some(RouteType::Static));
let x1 = Route::new().set_or_clear_route_type(Some(RouteType::Subnet));
let x2 = Route::new().set_or_clear_route_type(Some(RouteType::Transit));
let x_none = Route::new().set_or_clear_route_type(None::<RouteType>);

Sets the value of self_link.

§Example
let x = Route::new().set_self_link("example");

Sets or clears the value of self_link.

§Example
let x = Route::new().set_or_clear_self_link(Some("example"));
let x = Route::new().set_or_clear_self_link(None::<String>);
Source

pub fn set_tags<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of tags.

§Example
let x = Route::new().set_tags(["a", "b", "c"]);
Source

pub fn set_warnings<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Warnings>,

Sets the value of warnings.

§Example
use google_cloud_compute_v1::model::route::Warnings;
let x = Route::new()
    .set_warnings([
        Warnings::default()/* use setters */,
        Warnings::default()/* use (different) setters */,
    ]);

Trait Implementations§

Source§

impl Clone for Route

Source§

fn clone(&self) -> Route

Returns a duplicate 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 Route

Source§

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

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

impl Default for Route

Source§

fn default() -> Route

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

impl Message for Route

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Route

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Route

Auto Trait Implementations§

§

impl Freeze for Route

§

impl RefUnwindSafe for Route

§

impl Send for Route

§

impl Sync for Route

§

impl Unpin for Route

§

impl UnwindSafe for Route

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> 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: 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: 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 = 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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