pub struct ConvertFieldOptions {
pub field: FieldDescriptor,
pub ty: Option<String>,
pub val_override: Option<String>,
pub required: bool,
pub attributes: Vec<String>,
}Fields§
§field: FieldDescriptor§ty: Option<String>§val_override: Option<String>§required: bool§attributes: Vec<String>Trait Implementations§
Source§impl Debug for ConvertFieldOptions
impl Debug for ConvertFieldOptions
Source§impl From<(&FieldDescriptor, &ExtensionDescriptor)> for ConvertFieldOptions
impl From<(&FieldDescriptor, &ExtensionDescriptor)> for ConvertFieldOptions
Source§fn from((f, ext): (&FieldDescriptor, &ExtensionDescriptor)) -> Self
fn from((f, ext): (&FieldDescriptor, &ExtensionDescriptor)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvertFieldOptions
impl RefUnwindSafe for ConvertFieldOptions
impl Send for ConvertFieldOptions
impl Sync for ConvertFieldOptions
impl Unpin for ConvertFieldOptions
impl UnwindSafe for ConvertFieldOptions
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