#[non_exhaustive]pub struct PathComponentBuilder { /* private fields */ }
Expand description
A builder for PathComponent
.
Implementations§
Source§impl PathComponentBuilder
impl PathComponentBuilder
Sourcepub fn sequence_number(self, input: i32) -> Self
pub fn sequence_number(self, input: i32) -> Self
The sequence number.
Sourcepub fn set_sequence_number(self, input: Option<i32>) -> Self
pub fn set_sequence_number(self, input: Option<i32>) -> Self
The sequence number.
Sourcepub fn get_sequence_number(&self) -> &Option<i32>
pub fn get_sequence_number(&self) -> &Option<i32>
The sequence number.
Sourcepub fn acl_rule(self, input: AnalysisAclRule) -> Self
pub fn acl_rule(self, input: AnalysisAclRule) -> Self
The network ACL rule.
Sourcepub fn set_acl_rule(self, input: Option<AnalysisAclRule>) -> Self
pub fn set_acl_rule(self, input: Option<AnalysisAclRule>) -> Self
The network ACL rule.
Sourcepub fn get_acl_rule(&self) -> &Option<AnalysisAclRule>
pub fn get_acl_rule(&self) -> &Option<AnalysisAclRule>
The network ACL rule.
Sourcepub fn attached_to(self, input: AnalysisComponent) -> Self
pub fn attached_to(self, input: AnalysisComponent) -> Self
The resource to which the path component is attached.
Sourcepub fn set_attached_to(self, input: Option<AnalysisComponent>) -> Self
pub fn set_attached_to(self, input: Option<AnalysisComponent>) -> Self
The resource to which the path component is attached.
Sourcepub fn get_attached_to(&self) -> &Option<AnalysisComponent>
pub fn get_attached_to(&self) -> &Option<AnalysisComponent>
The resource to which the path component is attached.
Sourcepub fn component(self, input: AnalysisComponent) -> Self
pub fn component(self, input: AnalysisComponent) -> Self
The component.
Sourcepub fn set_component(self, input: Option<AnalysisComponent>) -> Self
pub fn set_component(self, input: Option<AnalysisComponent>) -> Self
The component.
Sourcepub fn get_component(&self) -> &Option<AnalysisComponent>
pub fn get_component(&self) -> &Option<AnalysisComponent>
The component.
Sourcepub fn destination_vpc(self, input: AnalysisComponent) -> Self
pub fn destination_vpc(self, input: AnalysisComponent) -> Self
The destination VPC.
Sourcepub fn set_destination_vpc(self, input: Option<AnalysisComponent>) -> Self
pub fn set_destination_vpc(self, input: Option<AnalysisComponent>) -> Self
The destination VPC.
Sourcepub fn get_destination_vpc(&self) -> &Option<AnalysisComponent>
pub fn get_destination_vpc(&self) -> &Option<AnalysisComponent>
The destination VPC.
Sourcepub fn outbound_header(self, input: AnalysisPacketHeader) -> Self
pub fn outbound_header(self, input: AnalysisPacketHeader) -> Self
The outbound header.
Sourcepub fn set_outbound_header(self, input: Option<AnalysisPacketHeader>) -> Self
pub fn set_outbound_header(self, input: Option<AnalysisPacketHeader>) -> Self
The outbound header.
Sourcepub fn get_outbound_header(&self) -> &Option<AnalysisPacketHeader>
pub fn get_outbound_header(&self) -> &Option<AnalysisPacketHeader>
The outbound header.
Sourcepub fn inbound_header(self, input: AnalysisPacketHeader) -> Self
pub fn inbound_header(self, input: AnalysisPacketHeader) -> Self
The inbound header.
Sourcepub fn set_inbound_header(self, input: Option<AnalysisPacketHeader>) -> Self
pub fn set_inbound_header(self, input: Option<AnalysisPacketHeader>) -> Self
The inbound header.
Sourcepub fn get_inbound_header(&self) -> &Option<AnalysisPacketHeader>
pub fn get_inbound_header(&self) -> &Option<AnalysisPacketHeader>
The inbound header.
Sourcepub fn route_table_route(self, input: AnalysisRouteTableRoute) -> Self
pub fn route_table_route(self, input: AnalysisRouteTableRoute) -> Self
The route table route.
Sourcepub fn set_route_table_route(
self,
input: Option<AnalysisRouteTableRoute>,
) -> Self
pub fn set_route_table_route( self, input: Option<AnalysisRouteTableRoute>, ) -> Self
The route table route.
Sourcepub fn get_route_table_route(&self) -> &Option<AnalysisRouteTableRoute>
pub fn get_route_table_route(&self) -> &Option<AnalysisRouteTableRoute>
The route table route.
Sourcepub fn security_group_rule(self, input: AnalysisSecurityGroupRule) -> Self
pub fn security_group_rule(self, input: AnalysisSecurityGroupRule) -> Self
The security group rule.
Sourcepub fn set_security_group_rule(
self,
input: Option<AnalysisSecurityGroupRule>,
) -> Self
pub fn set_security_group_rule( self, input: Option<AnalysisSecurityGroupRule>, ) -> Self
The security group rule.
Sourcepub fn get_security_group_rule(&self) -> &Option<AnalysisSecurityGroupRule>
pub fn get_security_group_rule(&self) -> &Option<AnalysisSecurityGroupRule>
The security group rule.
Sourcepub fn source_vpc(self, input: AnalysisComponent) -> Self
pub fn source_vpc(self, input: AnalysisComponent) -> Self
The source VPC.
Sourcepub fn set_source_vpc(self, input: Option<AnalysisComponent>) -> Self
pub fn set_source_vpc(self, input: Option<AnalysisComponent>) -> Self
The source VPC.
Sourcepub fn get_source_vpc(&self) -> &Option<AnalysisComponent>
pub fn get_source_vpc(&self) -> &Option<AnalysisComponent>
The source VPC.
Sourcepub fn subnet(self, input: AnalysisComponent) -> Self
pub fn subnet(self, input: AnalysisComponent) -> Self
The subnet.
Sourcepub fn set_subnet(self, input: Option<AnalysisComponent>) -> Self
pub fn set_subnet(self, input: Option<AnalysisComponent>) -> Self
The subnet.
Sourcepub fn get_subnet(&self) -> &Option<AnalysisComponent>
pub fn get_subnet(&self) -> &Option<AnalysisComponent>
The subnet.
Sourcepub fn vpc(self, input: AnalysisComponent) -> Self
pub fn vpc(self, input: AnalysisComponent) -> Self
The component VPC.
Sourcepub fn set_vpc(self, input: Option<AnalysisComponent>) -> Self
pub fn set_vpc(self, input: Option<AnalysisComponent>) -> Self
The component VPC.
Sourcepub fn get_vpc(&self) -> &Option<AnalysisComponent>
pub fn get_vpc(&self) -> &Option<AnalysisComponent>
The component VPC.
Sourcepub fn additional_details(self, input: AdditionalDetail) -> Self
pub fn additional_details(self, input: AdditionalDetail) -> Self
Appends an item to additional_details
.
To override the contents of this collection use set_additional_details
.
The additional details.
Sourcepub fn set_additional_details(
self,
input: Option<Vec<AdditionalDetail>>,
) -> Self
pub fn set_additional_details( self, input: Option<Vec<AdditionalDetail>>, ) -> Self
The additional details.
Sourcepub fn get_additional_details(&self) -> &Option<Vec<AdditionalDetail>>
pub fn get_additional_details(&self) -> &Option<Vec<AdditionalDetail>>
The additional details.
Sourcepub fn transit_gateway(self, input: AnalysisComponent) -> Self
pub fn transit_gateway(self, input: AnalysisComponent) -> Self
The transit gateway.
Sourcepub fn set_transit_gateway(self, input: Option<AnalysisComponent>) -> Self
pub fn set_transit_gateway(self, input: Option<AnalysisComponent>) -> Self
The transit gateway.
Sourcepub fn get_transit_gateway(&self) -> &Option<AnalysisComponent>
pub fn get_transit_gateway(&self) -> &Option<AnalysisComponent>
The transit gateway.
Sourcepub fn transit_gateway_route_table_route(
self,
input: TransitGatewayRouteTableRoute,
) -> Self
pub fn transit_gateway_route_table_route( self, input: TransitGatewayRouteTableRoute, ) -> Self
The route in a transit gateway route table.
Sourcepub fn set_transit_gateway_route_table_route(
self,
input: Option<TransitGatewayRouteTableRoute>,
) -> Self
pub fn set_transit_gateway_route_table_route( self, input: Option<TransitGatewayRouteTableRoute>, ) -> Self
The route in a transit gateway route table.
Sourcepub fn get_transit_gateway_route_table_route(
&self,
) -> &Option<TransitGatewayRouteTableRoute>
pub fn get_transit_gateway_route_table_route( &self, ) -> &Option<TransitGatewayRouteTableRoute>
The route in a transit gateway route table.
Sourcepub fn explanations(self, input: Explanation) -> Self
pub fn explanations(self, input: Explanation) -> Self
Appends an item to explanations
.
To override the contents of this collection use set_explanations
.
The explanation codes.
Sourcepub fn set_explanations(self, input: Option<Vec<Explanation>>) -> Self
pub fn set_explanations(self, input: Option<Vec<Explanation>>) -> Self
The explanation codes.
Sourcepub fn get_explanations(&self) -> &Option<Vec<Explanation>>
pub fn get_explanations(&self) -> &Option<Vec<Explanation>>
The explanation codes.
Sourcepub fn elastic_load_balancer_listener(self, input: AnalysisComponent) -> Self
pub fn elastic_load_balancer_listener(self, input: AnalysisComponent) -> Self
The load balancer listener.
Sourcepub fn set_elastic_load_balancer_listener(
self,
input: Option<AnalysisComponent>,
) -> Self
pub fn set_elastic_load_balancer_listener( self, input: Option<AnalysisComponent>, ) -> Self
The load balancer listener.
Sourcepub fn get_elastic_load_balancer_listener(&self) -> &Option<AnalysisComponent>
pub fn get_elastic_load_balancer_listener(&self) -> &Option<AnalysisComponent>
The load balancer listener.
Sourcepub fn firewall_stateless_rule(self, input: FirewallStatelessRule) -> Self
pub fn firewall_stateless_rule(self, input: FirewallStatelessRule) -> Self
The Network Firewall stateless rule.
Sourcepub fn set_firewall_stateless_rule(
self,
input: Option<FirewallStatelessRule>,
) -> Self
pub fn set_firewall_stateless_rule( self, input: Option<FirewallStatelessRule>, ) -> Self
The Network Firewall stateless rule.
Sourcepub fn get_firewall_stateless_rule(&self) -> &Option<FirewallStatelessRule>
pub fn get_firewall_stateless_rule(&self) -> &Option<FirewallStatelessRule>
The Network Firewall stateless rule.
Sourcepub fn firewall_stateful_rule(self, input: FirewallStatefulRule) -> Self
pub fn firewall_stateful_rule(self, input: FirewallStatefulRule) -> Self
The Network Firewall stateful rule.
Sourcepub fn set_firewall_stateful_rule(
self,
input: Option<FirewallStatefulRule>,
) -> Self
pub fn set_firewall_stateful_rule( self, input: Option<FirewallStatefulRule>, ) -> Self
The Network Firewall stateful rule.
Sourcepub fn get_firewall_stateful_rule(&self) -> &Option<FirewallStatefulRule>
pub fn get_firewall_stateful_rule(&self) -> &Option<FirewallStatefulRule>
The Network Firewall stateful rule.
Sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the VPC endpoint service.
Sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the VPC endpoint service.
Sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the VPC endpoint service.
Sourcepub fn build(self) -> PathComponent
pub fn build(self) -> PathComponent
Consumes the builder and constructs a PathComponent
.
Trait Implementations§
Source§impl Clone for PathComponentBuilder
impl Clone for PathComponentBuilder
Source§fn clone(&self) -> PathComponentBuilder
fn clone(&self) -> PathComponentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PathComponentBuilder
impl Debug for PathComponentBuilder
Source§impl Default for PathComponentBuilder
impl Default for PathComponentBuilder
Source§fn default() -> PathComponentBuilder
fn default() -> PathComponentBuilder
Source§impl PartialEq for PathComponentBuilder
impl PartialEq for PathComponentBuilder
impl StructuralPartialEq for PathComponentBuilder
Auto Trait Implementations§
impl Freeze for PathComponentBuilder
impl RefUnwindSafe for PathComponentBuilder
impl Send for PathComponentBuilder
impl Sync for PathComponentBuilder
impl Unpin for PathComponentBuilder
impl UnwindSafe for PathComponentBuilder
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);