pub struct Option {
pub combined_form: String,
pub option_name: String,
pub option_value: String,
pub effect_tags: Vec<i32>,
pub metadata_tags: Vec<i32>,
}Expand description
A single command line option.
This represents the option itself, but does not take into account the type of option or how the parser interpreted it. If this option is part of a command line that represents the actual input that Bazel received, it would, for example, include expansion flags as they are. However, if this option represents the canonical form of the command line, with the values as Bazel understands them, then the expansion flag, which has no value, would not appear, and the flags it expands to would.
Fields§
§combined_form: StringHow the option looks with the option and its value combined. Depending on the purpose of this command line report, this could be the canonical form, or the way that the flag was set.
Some examples: this might be --foo=bar form, or --foo bar with a space;
for boolean flags, --nobaz is accepted on top of --baz=false and other
negating values, or for a positive value, the unqualified --baz form
is also accepted. This could also be a short -b, if the flag has an
abbreviated form.
option_name: StringThe canonical name of the option, without the preceding dashes.
option_value: StringThe value of the flag, or unset for flags that do not take values. Especially for boolean flags, this should be in canonical form, the combined_form field above gives room for showing the flag as it was set if that is preferred.
This flag’s tagged effects. See OptionEffectTag’s java documentation for details.
Metadata about the flag. See OptionMetadataTag’s java documentation for details.
Implementations§
Trait Implementations§
Source§impl Message for Option
impl Message for Option
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.impl StructuralPartialEq for Option
Auto Trait Implementations§
impl Freeze for Option
impl RefUnwindSafe for Option
impl Send for Option
impl Sync for Option
impl Unpin for Option
impl UnwindSafe for Option
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request