#[non_exhaustive]pub struct PrefixList {
pub included_object_prefixes: Vec<String>,
/* private fields */
}Expand description
Describes prefixes of objects to be transformed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.included_object_prefixes: Vec<String>Optional. Include prefixes of the objects to be transformed.
- Supports full object name
- Supports prefix of the object name
- Wildcards are not supported
- Supports empty string for all objects in a bucket.
Implementations§
Source§impl PrefixList
impl PrefixList
pub fn new() -> Self
Sourcepub fn set_included_object_prefixes<T, V>(self, v: T) -> Self
pub fn set_included_object_prefixes<T, V>(self, v: T) -> Self
Sets the value of included_object_prefixes.
§Example
ⓘ
let x = PrefixList::new().set_included_object_prefixes(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for PrefixList
impl Clone for PrefixList
Source§fn clone(&self) -> PrefixList
fn clone(&self) -> PrefixList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefixList
impl Debug for PrefixList
Source§impl Default for PrefixList
impl Default for PrefixList
Source§fn default() -> PrefixList
fn default() -> PrefixList
Returns the “default value” for a type. Read more
Source§impl PartialEq for PrefixList
impl PartialEq for PrefixList
impl StructuralPartialEq for PrefixList
Auto Trait Implementations§
impl Freeze for PrefixList
impl RefUnwindSafe for PrefixList
impl Send for PrefixList
impl Sync for PrefixList
impl Unpin for PrefixList
impl UnwindSafe for PrefixList
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
Mutably borrows from an owned value. Read more