pub struct SurfacePresentation {
pub automatic_title: Option<String>,
pub custom_title: Option<String>,
pub icon: Option<SurfaceIcon>,
pub capabilities: SurfaceCapabilities,
}Fields§
§automatic_title: Option<String>§custom_title: Option<String>§icon: Option<SurfaceIcon>§capabilities: SurfaceCapabilitiesImplementations§
Source§impl SurfacePresentation
impl SurfacePresentation
pub fn for_content(content: &SurfaceContent) -> Self
pub fn title(&self) -> Option<&str>
pub fn set_custom_title(&mut self, title: Option<&str>)
Trait Implementations§
Source§impl Clone for SurfacePresentation
impl Clone for SurfacePresentation
Source§fn clone(&self) -> SurfacePresentation
fn clone(&self) -> SurfacePresentation
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 SurfacePresentation
impl Debug for SurfacePresentation
Source§impl<'de> Deserialize<'de> for SurfacePresentation
impl<'de> Deserialize<'de> for SurfacePresentation
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
impl Eq for SurfacePresentation
Source§impl PartialEq for SurfacePresentation
impl PartialEq for SurfacePresentation
Source§impl Serialize for SurfacePresentation
impl Serialize for SurfacePresentation
impl StructuralPartialEq for SurfacePresentation
Auto Trait Implementations§
impl Freeze for SurfacePresentation
impl RefUnwindSafe for SurfacePresentation
impl Send for SurfacePresentation
impl Sync for SurfacePresentation
impl Unpin for SurfacePresentation
impl UnsafeUnpin for SurfacePresentation
impl UnwindSafe for SurfacePresentation
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