pub trait RefineObjectList<T, Error, ItemErr = Error>{
// Provided methods
fn set_name(&mut self, _name: &str) -> Result<(), Error> { ... }
fn set_prefix(&mut self, _prefix: &str) -> Result<(), Error> { ... }
fn set_common_prefix(&mut self, _list: &[Cow<'_, str>]) -> Result<(), Error> { ... }
fn set_max_keys(&mut self, _max_keys: &str) -> Result<(), Error> { ... }
fn set_key_count(&mut self, _key_count: &str) -> Result<(), Error> { ... }
fn set_next_continuation_token_str(
&mut self,
_token: &str,
) -> Result<(), Error> { ... }
fn set_list(&mut self, _list: Vec<T>) -> Result<(), Error> { ... }
fn decode_common_prefix(&mut self, xml: &str) -> Result<(), InnerListError> { ... }
fn decode<F>(
&mut self,
xml: &str,
init_object: F,
) -> Result<(), InnerListError>
where F: for<'a> Fn(&'a mut Self) -> Option<T> { ... }
}
Expand description
将 object 列表写入到 rust 类型
Provided Methods§
Sourcefn set_prefix(&mut self, _prefix: &str) -> Result<(), Error>
fn set_prefix(&mut self, _prefix: &str) -> Result<(), Error>
提取前缀
Sourcefn set_max_keys(&mut self, _max_keys: &str) -> Result<(), Error>
fn set_max_keys(&mut self, _max_keys: &str) -> Result<(), Error>
提取 max_keys
Sourcefn set_key_count(&mut self, _key_count: &str) -> Result<(), Error>
fn set_key_count(&mut self, _key_count: &str) -> Result<(), Error>
提取 key_count
Sourcefn set_next_continuation_token_str(&mut self, _token: &str) -> Result<(), Error>
fn set_next_continuation_token_str(&mut self, _token: &str) -> Result<(), Error>
提取翻页信息 token
Sourcefn decode_common_prefix(&mut self, xml: &str) -> Result<(), InnerListError>
fn decode_common_prefix(&mut self, xml: &str) -> Result<(), InnerListError>
用于解析 common prefix
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.