pub struct FilterRule {
pub name: Option<FilterRuleName>,
pub value: Option<FilterRuleValue>,
}Expand description
Specifies the Amazon S3 object key name to filter on. An object key name is the name assigned
to an object in your Amazon S3 bucket. You specify whether to filter on the suffix or prefix of
the object key name. A prefix is a specific string of characters at the beginning of an
object key name, which you can use to organize objects. For example, you can start the key
names of related objects with a prefix, such as 2023- or
engineering/. Then, you can use FilterRule to find objects in
a bucket with key names that have the same prefix. A suffix is similar to a prefix, but it
is at the end of the object key name instead of at the beginning.
Fields§
§name: Option<FilterRuleName>The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see Configuring Event Notifications in the Amazon S3 User Guide.
value: Option<FilterRuleValue>The value that the filter searches for in object key names.
Trait Implementations§
Source§impl Clone for FilterRule
impl Clone for FilterRule
Source§fn clone(&self) -> FilterRule
fn clone(&self) -> FilterRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilterRule
impl Debug for FilterRule
Source§impl Default for FilterRule
impl Default for FilterRule
Source§fn default() -> FilterRule
fn default() -> FilterRule
Source§impl<'de> Deserialize<'de> for FilterRule
impl<'de> Deserialize<'de> for FilterRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'xml> DeserializeContent<'xml> for FilterRule
Available on crate feature minio only.
impl<'xml> DeserializeContent<'xml> for FilterRule
minio only.Source§fn deserialize_content(d: &mut Deserializer<'xml>) -> DeResult<Self>
fn deserialize_content(d: &mut Deserializer<'xml>) -> DeResult<Self>
Source§impl DtoExt for FilterRule
impl DtoExt for FilterRule
Source§fn ignore_empty_strings(&mut self)
fn ignore_empty_strings(&mut self)
Some("") to NoneSource§impl PartialEq for FilterRule
impl PartialEq for FilterRule
Source§fn eq(&self, other: &FilterRule) -> bool
fn eq(&self, other: &FilterRule) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for FilterRule
impl Serialize for FilterRule
Source§impl SerializeContent for FilterRule
Available on crate feature minio only.
impl SerializeContent for FilterRule
minio only.