#[non_exhaustive]pub struct MessageTemplateList {
pub scope: String,
pub scope_id: String,
pub languages: Vec<String>,
pub default_language: String,
pub templates: Vec<MessageTemplateSummary>,
pub extra: Map<String, Value>,
}Expand description
Every template that can be edited at one scope.
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.scope: Stringplatform, merchant or shop.
scope_id: StringThe shop’s profile id, or platform.
languages: Vec<String>Every language a text can be written in.
default_language: StringThe language a message is written in when nothing about its recipient names one.
templates: Vec<MessageTemplateSummary>The templates the caller may read.
extra: Map<String, Value>Any additional response fields not modeled above.
Trait Implementations§
Source§impl Clone for MessageTemplateList
impl Clone for MessageTemplateList
Source§impl Debug for MessageTemplateList
impl Debug for MessageTemplateList
Source§impl<'de> Deserialize<'de> for MessageTemplateList
impl<'de> Deserialize<'de> for MessageTemplateList
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 Forget for MessageTemplateList
impl Freeze for MessageTemplateList
impl Move for MessageTemplateList
impl RefUnwindSafe for MessageTemplateList
impl Send for MessageTemplateList
impl Sync for MessageTemplateList
impl Unpin for MessageTemplateList
impl UnsafeUnpin for MessageTemplateList
impl UnwindSafe for MessageTemplateList
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