pub struct CostDirective {
pub weight: i32,
}Fields§
§weight: i32Implementations§
Source§impl CostDirective
impl CostDirective
pub fn definition() -> &'static str
Trait Implementations§
Source§impl<'a> ValueDeserialize<'a> for CostDirective
impl<'a> ValueDeserialize<'a> for CostDirective
fn deserialize(input: DeserValue<'a>) -> Result<Self, Error>
Source§fn default_when_missing() -> Option<Self>
fn default_when_missing() -> Option<Self>
Provides a default in the case where a field of this type is missing
Auto Trait Implementations§
impl Freeze for CostDirective
impl RefUnwindSafe for CostDirective
impl Send for CostDirective
impl Sync for CostDirective
impl Unpin for CostDirective
impl UnwindSafe for CostDirective
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> 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