#[non_exhaustive]pub struct PathComponent {Show 20 fields
pub sequence_number: Option<i32>,
pub acl_rule: Option<AnalysisAclRule>,
pub attached_to: Option<AnalysisComponent>,
pub component: Option<AnalysisComponent>,
pub destination_vpc: Option<AnalysisComponent>,
pub outbound_header: Option<AnalysisPacketHeader>,
pub inbound_header: Option<AnalysisPacketHeader>,
pub route_table_route: Option<AnalysisRouteTableRoute>,
pub security_group_rule: Option<AnalysisSecurityGroupRule>,
pub source_vpc: Option<AnalysisComponent>,
pub subnet: Option<AnalysisComponent>,
pub vpc: Option<AnalysisComponent>,
pub additional_details: Option<Vec<AdditionalDetail>>,
pub transit_gateway: Option<AnalysisComponent>,
pub transit_gateway_route_table_route: Option<TransitGatewayRouteTableRoute>,
pub explanations: Option<Vec<Explanation>>,
pub elastic_load_balancer_listener: Option<AnalysisComponent>,
pub firewall_stateless_rule: Option<FirewallStatelessRule>,
pub firewall_stateful_rule: Option<FirewallStatefulRule>,
pub service_name: Option<String>,
}
Expand description
Describes a path component.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.sequence_number: Option<i32>
The sequence number.
acl_rule: Option<AnalysisAclRule>
The network ACL rule.
attached_to: Option<AnalysisComponent>
The resource to which the path component is attached.
component: Option<AnalysisComponent>
The component.
destination_vpc: Option<AnalysisComponent>
The destination VPC.
outbound_header: Option<AnalysisPacketHeader>
The outbound header.
inbound_header: Option<AnalysisPacketHeader>
The inbound header.
route_table_route: Option<AnalysisRouteTableRoute>
The route table route.
security_group_rule: Option<AnalysisSecurityGroupRule>
The security group rule.
source_vpc: Option<AnalysisComponent>
The source VPC.
subnet: Option<AnalysisComponent>
The subnet.
vpc: Option<AnalysisComponent>
The component VPC.
additional_details: Option<Vec<AdditionalDetail>>
The additional details.
transit_gateway: Option<AnalysisComponent>
The transit gateway.
transit_gateway_route_table_route: Option<TransitGatewayRouteTableRoute>
The route in a transit gateway route table.
explanations: Option<Vec<Explanation>>
The explanation codes.
elastic_load_balancer_listener: Option<AnalysisComponent>
The load balancer listener.
firewall_stateless_rule: Option<FirewallStatelessRule>
The Network Firewall stateless rule.
firewall_stateful_rule: Option<FirewallStatefulRule>
The Network Firewall stateful rule.
service_name: Option<String>
The name of the VPC endpoint service.
Implementations§
Source§impl PathComponent
impl PathComponent
Sourcepub fn sequence_number(&self) -> Option<i32>
pub fn sequence_number(&self) -> Option<i32>
The sequence number.
Sourcepub fn acl_rule(&self) -> Option<&AnalysisAclRule>
pub fn acl_rule(&self) -> Option<&AnalysisAclRule>
The network ACL rule.
Sourcepub fn attached_to(&self) -> Option<&AnalysisComponent>
pub fn attached_to(&self) -> Option<&AnalysisComponent>
The resource to which the path component is attached.
Sourcepub fn component(&self) -> Option<&AnalysisComponent>
pub fn component(&self) -> Option<&AnalysisComponent>
The component.
Sourcepub fn destination_vpc(&self) -> Option<&AnalysisComponent>
pub fn destination_vpc(&self) -> Option<&AnalysisComponent>
The destination VPC.
Sourcepub fn outbound_header(&self) -> Option<&AnalysisPacketHeader>
pub fn outbound_header(&self) -> Option<&AnalysisPacketHeader>
The outbound header.
Sourcepub fn inbound_header(&self) -> Option<&AnalysisPacketHeader>
pub fn inbound_header(&self) -> Option<&AnalysisPacketHeader>
The inbound header.
Sourcepub fn route_table_route(&self) -> Option<&AnalysisRouteTableRoute>
pub fn route_table_route(&self) -> Option<&AnalysisRouteTableRoute>
The route table route.
Sourcepub fn security_group_rule(&self) -> Option<&AnalysisSecurityGroupRule>
pub fn security_group_rule(&self) -> Option<&AnalysisSecurityGroupRule>
The security group rule.
Sourcepub fn source_vpc(&self) -> Option<&AnalysisComponent>
pub fn source_vpc(&self) -> Option<&AnalysisComponent>
The source VPC.
Sourcepub fn subnet(&self) -> Option<&AnalysisComponent>
pub fn subnet(&self) -> Option<&AnalysisComponent>
The subnet.
Sourcepub fn vpc(&self) -> Option<&AnalysisComponent>
pub fn vpc(&self) -> Option<&AnalysisComponent>
The component VPC.
Sourcepub fn additional_details(&self) -> &[AdditionalDetail]
pub fn additional_details(&self) -> &[AdditionalDetail]
The additional details.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .additional_details.is_none()
.
Sourcepub fn transit_gateway(&self) -> Option<&AnalysisComponent>
pub fn transit_gateway(&self) -> Option<&AnalysisComponent>
The transit gateway.
Sourcepub fn transit_gateway_route_table_route(
&self,
) -> Option<&TransitGatewayRouteTableRoute>
pub fn transit_gateway_route_table_route( &self, ) -> Option<&TransitGatewayRouteTableRoute>
The route in a transit gateway route table.
Sourcepub fn explanations(&self) -> &[Explanation]
pub fn explanations(&self) -> &[Explanation]
The explanation codes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .explanations.is_none()
.
Sourcepub fn elastic_load_balancer_listener(&self) -> Option<&AnalysisComponent>
pub fn elastic_load_balancer_listener(&self) -> Option<&AnalysisComponent>
The load balancer listener.
Sourcepub fn firewall_stateless_rule(&self) -> Option<&FirewallStatelessRule>
pub fn firewall_stateless_rule(&self) -> Option<&FirewallStatelessRule>
The Network Firewall stateless rule.
Sourcepub fn firewall_stateful_rule(&self) -> Option<&FirewallStatefulRule>
pub fn firewall_stateful_rule(&self) -> Option<&FirewallStatefulRule>
The Network Firewall stateful rule.
Sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the VPC endpoint service.
Source§impl PathComponent
impl PathComponent
Sourcepub fn builder() -> PathComponentBuilder
pub fn builder() -> PathComponentBuilder
Creates a new builder-style object to manufacture PathComponent
.
Trait Implementations§
Source§impl Clone for PathComponent
impl Clone for PathComponent
Source§fn clone(&self) -> PathComponent
fn clone(&self) -> PathComponent
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PathComponent
impl Debug for PathComponent
Source§impl PartialEq for PathComponent
impl PartialEq for PathComponent
impl StructuralPartialEq for PathComponent
Auto Trait Implementations§
impl Freeze for PathComponent
impl RefUnwindSafe for PathComponent
impl Send for PathComponent
impl Sync for PathComponent
impl Unpin for PathComponent
impl UnwindSafe for PathComponent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);