pub enum IosPushSound {
Default,
None,
Custom(String),
}Expand description
APNs通知,通过这个字段指定声音,
- 默认为default(系统默认声音)
- 如设置为空值则为静音。
- 如设置为其他字符,则需要您的应用中配置了该声音才可以正常发声。
Variants§
Trait Implementations§
Source§impl Clone for IosPushSound
impl Clone for IosPushSound
Source§fn clone(&self) -> IosPushSound
fn clone(&self) -> IosPushSound
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 IosPushSound
impl Debug for IosPushSound
Source§impl NotifySerialize for IosPushSound
impl NotifySerialize for IosPushSound
fn serialize_field(&self) -> usize
fn serialize<S: Serializer>( &self, struct_serialize: &mut <S as Serializer>::SerializeStruct, ) -> Result<(), <S as Serializer>::Error>
Auto Trait Implementations§
impl Freeze for IosPushSound
impl RefUnwindSafe for IosPushSound
impl Send for IosPushSound
impl Sync for IosPushSound
impl Unpin for IosPushSound
impl UnwindSafe for IosPushSound
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