pub struct Documentation {
pub document_label: Option<DocumentLabel>,
pub document_url: Option<Url>,
}Fields§
§document_label: Option<DocumentLabel>The label of the documentation for providing software guides such as manuals and troubleshooting URLs.
document_url: Option<Url>The URL for a documentation.
Implementations§
Source§impl Documentation
impl Documentation
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Returns true if all fields of the Documentation are empty.
§Examples
use winget_types::locale::{Documentation, DocumentLabel};
let mut documentation = Documentation::default();
assert!(documentation.is_empty());
documentation.document_label = Some(DocumentLabel::new("Label").unwrap());
assert!(!documentation.is_empty());Trait Implementations§
Source§impl Clone for Documentation
impl Clone for Documentation
Source§fn clone(&self) -> Documentation
fn clone(&self) -> Documentation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Documentation
impl Debug for Documentation
Source§impl Default for Documentation
impl Default for Documentation
Source§fn default() -> Documentation
fn default() -> Documentation
Returns the “default value” for a type. Read more
Source§impl Hash for Documentation
impl Hash for Documentation
Source§impl Ord for Documentation
impl Ord for Documentation
Source§fn cmp(&self, other: &Documentation) -> Ordering
fn cmp(&self, other: &Documentation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Documentation
impl PartialEq for Documentation
Source§impl PartialOrd for Documentation
impl PartialOrd for Documentation
impl Eq for Documentation
impl StructuralPartialEq for Documentation
Auto Trait Implementations§
impl Freeze for Documentation
impl RefUnwindSafe for Documentation
impl Send for Documentation
impl Sync for Documentation
impl Unpin for Documentation
impl UnwindSafe for Documentation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more