#[non_exhaustive]pub enum AvatarView {
Full,
Redacted(AvatarRedaction),
Hidden,
}Expand description
What SceneBackend::avatar_view lets a caller see of one
SceneAvatar (draft-atwood-jmap-scene-00 at jmap-chat-spec 93f2258,
§Avatar Visibility): “The server hides an avatar from a caller as a
whole, or withholds some of its properties”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
The whole avatar, as stored. The default.
Redacted(AvatarRedaction)
The avatar with the AvatarRedaction’s properties withheld.
Hidden
“A hidden avatar is treated as if it did not exist:
SceneAvatar/get reports it in notFound, SceneAvatar/query does
not return it, and a SceneAvatar/set update of it returns
notFound.”
Trait Implementations§
Source§impl Clone for AvatarView
impl Clone for AvatarView
Source§impl Debug for AvatarView
impl Debug for AvatarView
Source§impl Default for AvatarView
impl Default for AvatarView
Source§impl PartialEq for AvatarView
impl PartialEq for AvatarView
impl StructuralPartialEq for AvatarView
Auto Trait Implementations§
impl Forget for AvatarView
impl Freeze for AvatarView
impl Move for AvatarView
impl RefUnwindSafe for AvatarView
impl Send for AvatarView
impl Sync for AvatarView
impl Unpin for AvatarView
impl UnsafeUnpin for AvatarView
impl UnwindSafe for AvatarView
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