pub struct ServiceConstraint {
pub restricted_to_service_brands: Option<Vec<String>>,
pub excluded_service_brands: Option<Vec<String>>,
pub description: Option<Box<Text>>,
}Expand description
ServiceConstraint : Either excluded or included service brands can be set.
Fields§
§restricted_to_service_brands: Option<Vec<String>>§excluded_service_brands: Option<Vec<String>>§description: Option<Box<Text>>Implementations§
Source§impl ServiceConstraint
impl ServiceConstraint
Sourcepub fn new() -> ServiceConstraint
pub fn new() -> ServiceConstraint
Either excluded or included service brands can be set.
Trait Implementations§
Source§impl Clone for ServiceConstraint
impl Clone for ServiceConstraint
Source§fn clone(&self) -> ServiceConstraint
fn clone(&self) -> ServiceConstraint
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 ServiceConstraint
impl Debug for ServiceConstraint
Source§impl Default for ServiceConstraint
impl Default for ServiceConstraint
Source§fn default() -> ServiceConstraint
fn default() -> ServiceConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceConstraint
impl<'de> Deserialize<'de> for ServiceConstraint
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
Source§impl PartialEq for ServiceConstraint
impl PartialEq for ServiceConstraint
Source§impl Serialize for ServiceConstraint
impl Serialize for ServiceConstraint
impl StructuralPartialEq for ServiceConstraint
Auto Trait Implementations§
impl Freeze for ServiceConstraint
impl RefUnwindSafe for ServiceConstraint
impl Send for ServiceConstraint
impl Sync for ServiceConstraint
impl Unpin for ServiceConstraint
impl UnwindSafe for ServiceConstraint
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