#[non_exhaustive]pub struct ChatPushCapability {
pub max_snippet_bytes: u64,
pub supported_urgency_values: Vec<String>,
pub max_messages_per_push: Option<u64>,
pub extra: Map<String, Value>,
}Expand description
Account-level capability object for "urn:ietf:params:jmap:chat:push".
Found at accounts[id].accountCapabilities["urn:ietf:params:jmap:chat:push"].
Spec: draft-atwood-jmap-chat-push-00
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.max_snippet_bytes: u64Maximum byte length of a bodySnippet in ChatMessagePush.
Truncation occurs on a UTF-8 boundary.
supported_urgency_values: Vec<String>Supported Web Push urgency values.
MUST include at least "normal" and "high".
max_messages_per_push: Option<u64>Maximum number of ChatMessageEntry objects per push payload.
None means the server does not impose a bound.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for ChatPushCapability
impl Clone for ChatPushCapability
Source§fn clone(&self) -> ChatPushCapability
fn clone(&self) -> ChatPushCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChatPushCapability
impl Debug for ChatPushCapability
Source§impl Default for ChatPushCapability
impl Default for ChatPushCapability
Source§fn default() -> ChatPushCapability
fn default() -> ChatPushCapability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatPushCapabilitywhere
ChatPushCapability: Default,
impl<'de> Deserialize<'de> for ChatPushCapabilitywhere
ChatPushCapability: Default,
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 ChatPushCapability
impl RefUnwindSafe for ChatPushCapability
impl Send for ChatPushCapability
impl Sync for ChatPushCapability
impl Unpin for ChatPushCapability
impl UnsafeUnpin for ChatPushCapability
impl UnwindSafe for ChatPushCapability
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