pub struct WriterVersion {
pub library: String,
pub version: String,
pub prerelease: Option<String>,
pub build_metadata: Option<String>,
}Fields§
§library: StringThe name of the library that created this file.
version: StringThe version of the library that created this file. Because we cannot assume
that the library is semantically versioned, this is a string. However, if it
is semantically versioned, it should be a valid semver string without any ‘v’
prefix. For example: 2.0.0, 2.0.0-rc.1.
For forward compatibility with older readers, when writing new manifests this field should contain only the core version (major.minor.patch) without any prerelease or build metadata. The prerelease/build info should be stored in the separate prerelease and build_metadata fields instead.
prerelease: Option<String>Optional semver prerelease identifier.
This field stores the prerelease portion of a semantic version separately from the core version number. For example, if the full version is “2.0.0-rc.1”, the version field would contain “2.0.0” and prerelease would contain “rc.1”.
This separation ensures forward compatibility: older readers can parse the clean version field without errors, while newer readers can reconstruct the full semantic version by combining version, prerelease, and build_metadata.
If absent, the version field is used as-is.
build_metadata: Option<String>Optional semver build metadata.
This field stores the build metadata portion of a semantic version separately from the core version number. For example, if the full version is “2.0.0-rc.1+build.123”, the version field would contain “2.0.0”, prerelease would contain “rc.1”, and build_metadata would contain “build.123”.
If absent, no build metadata is present.
Implementations§
Source§impl WriterVersion
impl WriterVersion
Sourcepub fn prerelease(&self) -> &str
pub fn prerelease(&self) -> &str
Returns the value of prerelease, or the default value if prerelease is unset.
Sourcepub fn build_metadata(&self) -> &str
pub fn build_metadata(&self) -> &str
Returns the value of build_metadata, or the default value if build_metadata is unset.
Trait Implementations§
Source§impl Clone for WriterVersion
impl Clone for WriterVersion
Source§fn clone(&self) -> WriterVersion
fn clone(&self) -> WriterVersion
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WriterVersion
impl Debug for WriterVersion
Source§impl Default for WriterVersion
impl Default for WriterVersion
Source§impl Message for WriterVersion
impl Message for WriterVersion
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for WriterVersion
impl Name for WriterVersion
Source§const NAME: &'static str = "WriterVersion"
const NAME: &'static str = "WriterVersion"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "lance.table"
const PACKAGE: &'static str = "lance.table"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for WriterVersion
impl PartialEq for WriterVersion
impl StructuralPartialEq for WriterVersion
Auto Trait Implementations§
impl Freeze for WriterVersion
impl RefUnwindSafe for WriterVersion
impl Send for WriterVersion
impl Sync for WriterVersion
impl Unpin for WriterVersion
impl UnwindSafe for WriterVersion
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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> 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>
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>
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