pub trait WarrantyPromiseTrait {
// Required methods
fn get_duration_of_warranty(&self) -> &[DurationOfWarrantyProperty];
fn take_duration_of_warranty(&mut self) -> Vec<DurationOfWarrantyProperty>;
fn get_warranty_scope(&self) -> &[WarrantyScopeProperty];
fn take_warranty_scope(&mut self) -> Vec<WarrantyScopeProperty>;
}
Expand description
This trait is for properties from https://schema.org/WarrantyPromise.
Required Methods§
sourcefn get_duration_of_warranty(&self) -> &[DurationOfWarrantyProperty]
fn get_duration_of_warranty(&self) -> &[DurationOfWarrantyProperty]
Get https://schema.org/durationOfWarranty from Self
as borrowed slice.
sourcefn take_duration_of_warranty(&mut self) -> Vec<DurationOfWarrantyProperty>
fn take_duration_of_warranty(&mut self) -> Vec<DurationOfWarrantyProperty>
Take https://schema.org/durationOfWarranty from Self
as owned vector.
sourcefn get_warranty_scope(&self) -> &[WarrantyScopeProperty]
fn get_warranty_scope(&self) -> &[WarrantyScopeProperty]
Get https://schema.org/warrantyScope from Self
as borrowed slice.
sourcefn take_warranty_scope(&mut self) -> Vec<WarrantyScopeProperty>
fn take_warranty_scope(&mut self) -> Vec<WarrantyScopeProperty>
Take https://schema.org/warrantyScope from Self
as owned vector.