pub struct Traits(/* private fields */);Implementations§
Source§impl Traits
impl Traits
pub fn set(&mut self, key: &str, value: Value)
pub fn get(&self, key: &str) -> Option<&Value>
Sourcepub fn iter(&self) -> impl Iterator<Item = (&String, &Value)>
pub fn iter(&self) -> impl Iterator<Item = (&String, &Value)>
Returns an iterator over the trait entries.
pub fn enum_value(&self) -> Option<&str>
pub fn doc(&self) -> Option<&str>
pub fn timestamp_format(&self) -> Option<&str>
pub fn required(&self) -> bool
pub fn default_value(&self) -> Option<&Value>
pub fn http_header(&self) -> Option<&str>
pub fn http_payload(&self) -> bool
pub fn http_query(&self) -> Option<&str>
pub fn xml_name(&self) -> Option<&str>
Sourcepub fn xml_alt_names(&self) -> Vec<&str>
pub fn xml_alt_names(&self) -> Vec<&str>
Returns the alternative XML root element names (s3s#xmlAltName trait).
Sourcepub fn body_literal(&self) -> Option<&str>
pub fn body_literal(&self) -> Option<&str>
Returns the body literal value (s3s#bodyLiteral trait).
pub fn xml_attr(&self) -> bool
pub fn xml_flattened(&self) -> bool
pub fn xml_namespace_uri(&self) -> Option<&str>
pub fn xml_namespace_prefix(&self) -> Option<&str>
pub fn s3_unwrapped_xml_output(&self) -> bool
pub fn http_label(&self) -> Option<&Value>
pub fn http_prefix_headers(&self) -> Option<&str>
pub fn http_method(&self) -> Option<&str>
pub fn http_uri(&self) -> Option<&str>
pub fn http_code(&self) -> Option<u16>
pub fn error(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Traits
impl<'de> Deserialize<'de> for Traits
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Traits
impl RefUnwindSafe for Traits
impl Send for Traits
impl Sync for Traits
impl Unpin for Traits
impl UnsafeUnpin for Traits
impl UnwindSafe for Traits
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