use std::fmt::Write;
pub mod batch_get_record_input {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) identifiers:
std::option::Option<std::vec::Vec<crate::model::BatchGetRecordIdentifier>>,
}
impl Builder {
pub fn identifiers(
mut self,
input: impl Into<crate::model::BatchGetRecordIdentifier>,
) -> Self {
let mut v = self.identifiers.unwrap_or_default();
v.push(input.into());
self.identifiers = Some(v);
self
}
pub fn set_identifiers(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchGetRecordIdentifier>>,
) -> Self {
self.identifiers = input;
self
}
pub fn build(
self,
) -> std::result::Result<
crate::input::BatchGetRecordInput,
aws_smithy_http::operation::BuildError,
> {
Ok(crate::input::BatchGetRecordInput {
identifiers: self.identifiers,
})
}
}
}
#[doc(hidden)]
pub type BatchGetRecordInputOperationOutputAlias = crate::operation::BatchGetRecord;
#[doc(hidden)]
pub type BatchGetRecordInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy;
impl BatchGetRecordInput {
#[allow(clippy::let_and_return)]
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::BatchGetRecord,
aws_http::AwsErrorRetryPolicy,
>,
aws_smithy_http::operation::BuildError,
> {
fn uri_base(
_input: &crate::input::BatchGetRecordInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::BuildError> {
write!(output, "/BatchGetRecord").expect("formatting should succeed");
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::BatchGetRecordInput,
builder: http::request::Builder,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
let mut uri = String::new();
uri_base(input, &mut uri)?;
Ok(builder.method("POST").uri(uri))
}
#[allow(clippy::unnecessary_wraps)]
fn request_builder_base(
input: &crate::input::BatchGetRecordInput,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
#[allow(unused_mut)]
let mut builder = update_http_builder(input, http::request::Builder::new())?;
builder = aws_smithy_http::header::set_header_if_absent(
builder,
http::header::HeaderName::from_static("content-type"),
"application/json",
);
Ok(builder)
}
let properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
let request = request_builder_base(&self)?;
let body =
crate::operation_ser::serialize_operation_crate_operation_batch_get_record(&self)?;
let request = Self::assemble(request, body);
#[allow(unused_mut)]
let mut request = aws_smithy_http::operation::Request::from_parts(
request.map(aws_smithy_http::body::SdkBody::from),
properties,
);
request
.properties_mut()
.insert(aws_http::user_agent::AwsUserAgent::new_from_environment(
crate::API_METADATA.clone(),
));
#[allow(unused_mut)]
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
aws_endpoint::set_endpoint_resolver(
&mut request.properties_mut(),
_config.endpoint_resolver.clone(),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::BatchGetRecord::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"BatchGetRecord",
"sagemakerfeaturestoreruntime",
));
let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new());
Ok(op)
}
fn assemble(
builder: http::request::Builder,
body: aws_smithy_http::body::SdkBody,
) -> http::request::Request<aws_smithy_http::body::SdkBody> {
let mut builder = builder;
if let Some(content_length) = body.content_length() {
builder = aws_smithy_http::header::set_header_if_absent(
builder,
http::header::CONTENT_LENGTH,
content_length,
);
}
builder.body(body).expect("should be valid request")
}
pub fn builder() -> crate::input::batch_get_record_input::Builder {
crate::input::batch_get_record_input::Builder::default()
}
}
pub mod delete_record_input {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) feature_group_name: std::option::Option<std::string::String>,
pub(crate) record_identifier_value_as_string: std::option::Option<std::string::String>,
pub(crate) event_time: std::option::Option<std::string::String>,
}
impl Builder {
pub fn feature_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.feature_group_name = Some(input.into());
self
}
pub fn set_feature_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.feature_group_name = input;
self
}
pub fn record_identifier_value_as_string(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.record_identifier_value_as_string = Some(input.into());
self
}
pub fn set_record_identifier_value_as_string(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.record_identifier_value_as_string = input;
self
}
pub fn event_time(mut self, input: impl Into<std::string::String>) -> Self {
self.event_time = Some(input.into());
self
}
pub fn set_event_time(mut self, input: std::option::Option<std::string::String>) -> Self {
self.event_time = input;
self
}
pub fn build(
self,
) -> std::result::Result<
crate::input::DeleteRecordInput,
aws_smithy_http::operation::BuildError,
> {
Ok(crate::input::DeleteRecordInput {
feature_group_name: self.feature_group_name,
record_identifier_value_as_string: self.record_identifier_value_as_string,
event_time: self.event_time,
})
}
}
}
#[doc(hidden)]
pub type DeleteRecordInputOperationOutputAlias = crate::operation::DeleteRecord;
#[doc(hidden)]
pub type DeleteRecordInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy;
impl DeleteRecordInput {
#[allow(clippy::let_and_return)]
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::DeleteRecord,
aws_http::AwsErrorRetryPolicy,
>,
aws_smithy_http::operation::BuildError,
> {
fn uri_base(
_input: &crate::input::DeleteRecordInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::BuildError> {
let input_1 = &_input.feature_group_name;
let input_1 =
input_1
.as_ref()
.ok_or(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
})?;
let feature_group_name = aws_smithy_http::label::fmt_string(input_1, false);
if feature_group_name.is_empty() {
return Err(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
});
}
write!(
output,
"/FeatureGroup/{FeatureGroupName}",
FeatureGroupName = feature_group_name
)
.expect("formatting should succeed");
Ok(())
}
fn uri_query(_input: &crate::input::DeleteRecordInput, mut output: &mut String) {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
if let Some(inner_2) = &_input.record_identifier_value_as_string {
query.push_kv(
"RecordIdentifierValueAsString",
&aws_smithy_http::query::fmt_string(&inner_2),
);
}
if let Some(inner_3) = &_input.event_time {
query.push_kv("EventTime", &aws_smithy_http::query::fmt_string(&inner_3));
}
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::DeleteRecordInput,
builder: http::request::Builder,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri);
Ok(builder.method("DELETE").uri(uri))
}
#[allow(clippy::unnecessary_wraps)]
fn request_builder_base(
input: &crate::input::DeleteRecordInput,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
#[allow(unused_mut)]
let mut builder = update_http_builder(input, http::request::Builder::new())?;
Ok(builder)
}
let properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
let request = request_builder_base(&self)?;
let body = aws_smithy_http::body::SdkBody::from("");
let request = Self::assemble(request, body);
#[allow(unused_mut)]
let mut request = aws_smithy_http::operation::Request::from_parts(
request.map(aws_smithy_http::body::SdkBody::from),
properties,
);
request
.properties_mut()
.insert(aws_http::user_agent::AwsUserAgent::new_from_environment(
crate::API_METADATA.clone(),
));
#[allow(unused_mut)]
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
aws_endpoint::set_endpoint_resolver(
&mut request.properties_mut(),
_config.endpoint_resolver.clone(),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::DeleteRecord::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"DeleteRecord",
"sagemakerfeaturestoreruntime",
));
let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new());
Ok(op)
}
fn assemble(
builder: http::request::Builder,
body: aws_smithy_http::body::SdkBody,
) -> http::request::Request<aws_smithy_http::body::SdkBody> {
builder.body(body).expect("should be valid request")
}
pub fn builder() -> crate::input::delete_record_input::Builder {
crate::input::delete_record_input::Builder::default()
}
}
pub mod get_record_input {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) feature_group_name: std::option::Option<std::string::String>,
pub(crate) record_identifier_value_as_string: std::option::Option<std::string::String>,
pub(crate) feature_names: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn feature_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.feature_group_name = Some(input.into());
self
}
pub fn set_feature_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.feature_group_name = input;
self
}
pub fn record_identifier_value_as_string(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.record_identifier_value_as_string = Some(input.into());
self
}
pub fn set_record_identifier_value_as_string(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.record_identifier_value_as_string = input;
self
}
pub fn feature_names(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.feature_names.unwrap_or_default();
v.push(input.into());
self.feature_names = Some(v);
self
}
pub fn set_feature_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.feature_names = input;
self
}
pub fn build(
self,
) -> std::result::Result<crate::input::GetRecordInput, aws_smithy_http::operation::BuildError>
{
Ok(crate::input::GetRecordInput {
feature_group_name: self.feature_group_name,
record_identifier_value_as_string: self.record_identifier_value_as_string,
feature_names: self.feature_names,
})
}
}
}
#[doc(hidden)]
pub type GetRecordInputOperationOutputAlias = crate::operation::GetRecord;
#[doc(hidden)]
pub type GetRecordInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy;
impl GetRecordInput {
#[allow(clippy::let_and_return)]
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::GetRecord,
aws_http::AwsErrorRetryPolicy,
>,
aws_smithy_http::operation::BuildError,
> {
fn uri_base(
_input: &crate::input::GetRecordInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::BuildError> {
let input_4 = &_input.feature_group_name;
let input_4 =
input_4
.as_ref()
.ok_or(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
})?;
let feature_group_name = aws_smithy_http::label::fmt_string(input_4, false);
if feature_group_name.is_empty() {
return Err(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
});
}
write!(
output,
"/FeatureGroup/{FeatureGroupName}",
FeatureGroupName = feature_group_name
)
.expect("formatting should succeed");
Ok(())
}
fn uri_query(_input: &crate::input::GetRecordInput, mut output: &mut String) {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
if let Some(inner_5) = &_input.record_identifier_value_as_string {
query.push_kv(
"RecordIdentifierValueAsString",
&aws_smithy_http::query::fmt_string(&inner_5),
);
}
if let Some(inner_6) = &_input.feature_names {
for inner_7 in inner_6 {
query.push_kv("FeatureName", &aws_smithy_http::query::fmt_string(&inner_7));
}
}
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::GetRecordInput,
builder: http::request::Builder,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri);
Ok(builder.method("GET").uri(uri))
}
#[allow(clippy::unnecessary_wraps)]
fn request_builder_base(
input: &crate::input::GetRecordInput,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
#[allow(unused_mut)]
let mut builder = update_http_builder(input, http::request::Builder::new())?;
Ok(builder)
}
let properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
let request = request_builder_base(&self)?;
let body = aws_smithy_http::body::SdkBody::from("");
let request = Self::assemble(request, body);
#[allow(unused_mut)]
let mut request = aws_smithy_http::operation::Request::from_parts(
request.map(aws_smithy_http::body::SdkBody::from),
properties,
);
request
.properties_mut()
.insert(aws_http::user_agent::AwsUserAgent::new_from_environment(
crate::API_METADATA.clone(),
));
#[allow(unused_mut)]
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
aws_endpoint::set_endpoint_resolver(
&mut request.properties_mut(),
_config.endpoint_resolver.clone(),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op =
aws_smithy_http::operation::Operation::new(request, crate::operation::GetRecord::new())
.with_metadata(aws_smithy_http::operation::Metadata::new(
"GetRecord",
"sagemakerfeaturestoreruntime",
));
let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new());
Ok(op)
}
fn assemble(
builder: http::request::Builder,
body: aws_smithy_http::body::SdkBody,
) -> http::request::Request<aws_smithy_http::body::SdkBody> {
builder.body(body).expect("should be valid request")
}
pub fn builder() -> crate::input::get_record_input::Builder {
crate::input::get_record_input::Builder::default()
}
}
pub mod put_record_input {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) feature_group_name: std::option::Option<std::string::String>,
pub(crate) record: std::option::Option<std::vec::Vec<crate::model::FeatureValue>>,
}
impl Builder {
pub fn feature_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.feature_group_name = Some(input.into());
self
}
pub fn set_feature_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.feature_group_name = input;
self
}
pub fn record(mut self, input: impl Into<crate::model::FeatureValue>) -> Self {
let mut v = self.record.unwrap_or_default();
v.push(input.into());
self.record = Some(v);
self
}
pub fn set_record(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::FeatureValue>>,
) -> Self {
self.record = input;
self
}
pub fn build(
self,
) -> std::result::Result<crate::input::PutRecordInput, aws_smithy_http::operation::BuildError>
{
Ok(crate::input::PutRecordInput {
feature_group_name: self.feature_group_name,
record: self.record,
})
}
}
}
#[doc(hidden)]
pub type PutRecordInputOperationOutputAlias = crate::operation::PutRecord;
#[doc(hidden)]
pub type PutRecordInputOperationRetryAlias = aws_http::AwsErrorRetryPolicy;
impl PutRecordInput {
#[allow(clippy::let_and_return)]
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::PutRecord,
aws_http::AwsErrorRetryPolicy,
>,
aws_smithy_http::operation::BuildError,
> {
fn uri_base(
_input: &crate::input::PutRecordInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::BuildError> {
let input_8 = &_input.feature_group_name;
let input_8 =
input_8
.as_ref()
.ok_or(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
})?;
let feature_group_name = aws_smithy_http::label::fmt_string(input_8, false);
if feature_group_name.is_empty() {
return Err(aws_smithy_http::operation::BuildError::MissingField {
field: "feature_group_name",
details: "cannot be empty or unset",
});
}
write!(
output,
"/FeatureGroup/{FeatureGroupName}",
FeatureGroupName = feature_group_name
)
.expect("formatting should succeed");
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::PutRecordInput,
builder: http::request::Builder,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
let mut uri = String::new();
uri_base(input, &mut uri)?;
Ok(builder.method("PUT").uri(uri))
}
#[allow(clippy::unnecessary_wraps)]
fn request_builder_base(
input: &crate::input::PutRecordInput,
) -> std::result::Result<http::request::Builder, aws_smithy_http::operation::BuildError>
{
#[allow(unused_mut)]
let mut builder = update_http_builder(input, http::request::Builder::new())?;
builder = aws_smithy_http::header::set_header_if_absent(
builder,
http::header::HeaderName::from_static("content-type"),
"application/json",
);
Ok(builder)
}
let properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
let request = request_builder_base(&self)?;
let body = crate::operation_ser::serialize_operation_crate_operation_put_record(&self)?;
let request = Self::assemble(request, body);
#[allow(unused_mut)]
let mut request = aws_smithy_http::operation::Request::from_parts(
request.map(aws_smithy_http::body::SdkBody::from),
properties,
);
request
.properties_mut()
.insert(aws_http::user_agent::AwsUserAgent::new_from_environment(
crate::API_METADATA.clone(),
));
#[allow(unused_mut)]
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
aws_endpoint::set_endpoint_resolver(
&mut request.properties_mut(),
_config.endpoint_resolver.clone(),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op =
aws_smithy_http::operation::Operation::new(request, crate::operation::PutRecord::new())
.with_metadata(aws_smithy_http::operation::Metadata::new(
"PutRecord",
"sagemakerfeaturestoreruntime",
));
let op = op.with_retry_policy(aws_http::AwsErrorRetryPolicy::new());
Ok(op)
}
fn assemble(
builder: http::request::Builder,
body: aws_smithy_http::body::SdkBody,
) -> http::request::Request<aws_smithy_http::body::SdkBody> {
let mut builder = builder;
if let Some(content_length) = body.content_length() {
builder = aws_smithy_http::header::set_header_if_absent(
builder,
http::header::CONTENT_LENGTH,
content_length,
);
}
builder.body(body).expect("should be valid request")
}
pub fn builder() -> crate::input::put_record_input::Builder {
crate::input::put_record_input::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PutRecordInput {
pub feature_group_name: std::option::Option<std::string::String>,
pub record: std::option::Option<std::vec::Vec<crate::model::FeatureValue>>,
}
impl PutRecordInput {
pub fn feature_group_name(&self) -> std::option::Option<&str> {
self.feature_group_name.as_deref()
}
pub fn record(&self) -> std::option::Option<&[crate::model::FeatureValue]> {
self.record.as_deref()
}
}
impl std::fmt::Debug for PutRecordInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PutRecordInput");
formatter.field("feature_group_name", &self.feature_group_name);
formatter.field("record", &self.record);
formatter.finish()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetRecordInput {
pub feature_group_name: std::option::Option<std::string::String>,
pub record_identifier_value_as_string: std::option::Option<std::string::String>,
pub feature_names: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl GetRecordInput {
pub fn feature_group_name(&self) -> std::option::Option<&str> {
self.feature_group_name.as_deref()
}
pub fn record_identifier_value_as_string(&self) -> std::option::Option<&str> {
self.record_identifier_value_as_string.as_deref()
}
pub fn feature_names(&self) -> std::option::Option<&[std::string::String]> {
self.feature_names.as_deref()
}
}
impl std::fmt::Debug for GetRecordInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetRecordInput");
formatter.field("feature_group_name", &self.feature_group_name);
formatter.field(
"record_identifier_value_as_string",
&self.record_identifier_value_as_string,
);
formatter.field("feature_names", &self.feature_names);
formatter.finish()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteRecordInput {
pub feature_group_name: std::option::Option<std::string::String>,
pub record_identifier_value_as_string: std::option::Option<std::string::String>,
pub event_time: std::option::Option<std::string::String>,
}
impl DeleteRecordInput {
pub fn feature_group_name(&self) -> std::option::Option<&str> {
self.feature_group_name.as_deref()
}
pub fn record_identifier_value_as_string(&self) -> std::option::Option<&str> {
self.record_identifier_value_as_string.as_deref()
}
pub fn event_time(&self) -> std::option::Option<&str> {
self.event_time.as_deref()
}
}
impl std::fmt::Debug for DeleteRecordInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteRecordInput");
formatter.field("feature_group_name", &self.feature_group_name);
formatter.field(
"record_identifier_value_as_string",
&self.record_identifier_value_as_string,
);
formatter.field("event_time", &self.event_time);
formatter.finish()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BatchGetRecordInput {
pub identifiers: std::option::Option<std::vec::Vec<crate::model::BatchGetRecordIdentifier>>,
}
impl BatchGetRecordInput {
pub fn identifiers(&self) -> std::option::Option<&[crate::model::BatchGetRecordIdentifier]> {
self.identifiers.as_deref()
}
}
impl std::fmt::Debug for BatchGetRecordInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BatchGetRecordInput");
formatter.field("identifiers", &self.identifiers);
formatter.finish()
}
}