#[non_exhaustive]pub struct Row {Show 19 fields
pub archived_message_id: Option<String>,
pub received_timestamp: Option<DateTime>,
pub date: Option<String>,
pub to: Option<String>,
pub from: Option<String>,
pub cc: Option<String>,
pub subject: Option<String>,
pub message_id: Option<String>,
pub has_attachments: Option<bool>,
pub received_headers: Option<Vec<String>>,
pub in_reply_to: Option<String>,
pub x_mailer: Option<String>,
pub x_original_mailer: Option<String>,
pub x_priority: Option<String>,
pub ingress_point_id: Option<String>,
pub sender_hostname: Option<String>,
pub sender_ip_address: Option<String>,
pub envelope: Option<Envelope>,
pub source_arn: Option<String>,
}
Expand description
A result row containing metadata for an archived email message.
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.archived_message_id: Option<String>
The unique identifier of the archived message.
received_timestamp: Option<DateTime>
The timestamp of when the email was received.
date: Option<String>
The date the email was sent.
to: Option<String>
The email addresses in the To header.
from: Option<String>
The email address of the sender.
cc: Option<String>
The email addresses in the CC header.
subject: Option<String>
The subject header value of the email.
message_id: Option<String>
The unique message ID of the email.
has_attachments: Option<bool>
A flag indicating if the email has attachments.
received_headers: Option<Vec<String>>
The received headers from the email delivery path.
in_reply_to: Option<String>
The email message ID this is a reply to.
x_mailer: Option<String>
The user agent that sent the email.
x_original_mailer: Option<String>
The original user agent that sent the email.
x_priority: Option<String>
The priority level of the email.
ingress_point_id: Option<String>
The ID of the ingress endpoint through which the email was received.
sender_hostname: Option<String>
The name of the host from which the email was received.
sender_ip_address: Option<String>
-
Mail archived with Mail Manager: The IP address of the client that connects to the ingress endpoint.
-
Mail sent through a configuration set with the archiving option enabled: The IP address of the client that makes the SendEmail API call.
envelope: Option<Envelope>
The SMTP envelope information of the email.
source_arn: Option<String>
Specifies the archived email source, identified by either a Rule Set's ARN with an Archive action, or a Configuration Set's Archive ARN.
Implementations§
Source§impl Row
impl Row
Sourcepub fn archived_message_id(&self) -> Option<&str>
pub fn archived_message_id(&self) -> Option<&str>
The unique identifier of the archived message.
Sourcepub fn received_timestamp(&self) -> Option<&DateTime>
pub fn received_timestamp(&self) -> Option<&DateTime>
The timestamp of when the email was received.
Sourcepub fn message_id(&self) -> Option<&str>
pub fn message_id(&self) -> Option<&str>
The unique message ID of the email.
Sourcepub fn has_attachments(&self) -> Option<bool>
pub fn has_attachments(&self) -> Option<bool>
A flag indicating if the email has attachments.
Sourcepub fn received_headers(&self) -> &[String]
pub fn received_headers(&self) -> &[String]
The received headers from the email delivery path.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .received_headers.is_none()
.
Sourcepub fn in_reply_to(&self) -> Option<&str>
pub fn in_reply_to(&self) -> Option<&str>
The email message ID this is a reply to.
Sourcepub fn x_original_mailer(&self) -> Option<&str>
pub fn x_original_mailer(&self) -> Option<&str>
The original user agent that sent the email.
Sourcepub fn x_priority(&self) -> Option<&str>
pub fn x_priority(&self) -> Option<&str>
The priority level of the email.
Sourcepub fn ingress_point_id(&self) -> Option<&str>
pub fn ingress_point_id(&self) -> Option<&str>
The ID of the ingress endpoint through which the email was received.
Sourcepub fn sender_hostname(&self) -> Option<&str>
pub fn sender_hostname(&self) -> Option<&str>
The name of the host from which the email was received.
Sourcepub fn sender_ip_address(&self) -> Option<&str>
pub fn sender_ip_address(&self) -> Option<&str>
-
Mail archived with Mail Manager: The IP address of the client that connects to the ingress endpoint.
-
Mail sent through a configuration set with the archiving option enabled: The IP address of the client that makes the SendEmail API call.
Sourcepub fn source_arn(&self) -> Option<&str>
pub fn source_arn(&self) -> Option<&str>
Specifies the archived email source, identified by either a Rule Set's ARN with an Archive action, or a Configuration Set's Archive ARN.
Trait Implementations§
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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);