pub struct GetPersonalizedRankingRequest {
pub campaign_arn: String,
pub context: Option<HashMap<String, String>>,
pub filter_arn: Option<String>,
pub filter_values: Option<HashMap<String, String>>,
pub input_list: Vec<String>,
pub user_id: String,
}
Fields
campaign_arn: String
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
context: Option<HashMap<String, String>>
The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.
filter_arn: Option<String>
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see Filtering Recommendations.
filter_values: Option<HashMap<String, String>>
The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude items, you can omit the filter-values
.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
input_list: Vec<String>
A list of items (by itemId
) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
user_id: String
The user for which you want the campaign to provide a personalized ranking.
Trait Implementations
sourceimpl Clone for GetPersonalizedRankingRequest
impl Clone for GetPersonalizedRankingRequest
sourcefn clone(&self) -> GetPersonalizedRankingRequest
fn clone(&self) -> GetPersonalizedRankingRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetPersonalizedRankingRequest
impl Debug for GetPersonalizedRankingRequest
sourceimpl Default for GetPersonalizedRankingRequest
impl Default for GetPersonalizedRankingRequest
sourcefn default() -> GetPersonalizedRankingRequest
fn default() -> GetPersonalizedRankingRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<GetPersonalizedRankingRequest> for GetPersonalizedRankingRequest
impl PartialEq<GetPersonalizedRankingRequest> for GetPersonalizedRankingRequest
sourcefn eq(&self, other: &GetPersonalizedRankingRequest) -> bool
fn eq(&self, other: &GetPersonalizedRankingRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetPersonalizedRankingRequest) -> bool
fn ne(&self, other: &GetPersonalizedRankingRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for GetPersonalizedRankingRequest
Auto Trait Implementations
impl RefUnwindSafe for GetPersonalizedRankingRequest
impl Send for GetPersonalizedRankingRequest
impl Sync for GetPersonalizedRankingRequest
impl Unpin for GetPersonalizedRankingRequest
impl UnwindSafe for GetPersonalizedRankingRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more