pub struct Remote { /* private fields */ }Expand description
The lux.toml, after being validated and prepared for upload
Implementations§
Trait Implementations§
Source§impl Rockspec for Remote
impl Rockspec for Remote
fn package(&self) -> &Name
fn version(&self) -> &Version
fn description(&self) -> &Spec
fn supported_platforms(&self) -> &Support
fn lua(&self) -> &VersionReq
fn dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn build_dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn external_dependencies(&self) -> &PerPlatform<HashMap<String, Spec>>
fn test_dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn build(&self) -> &PerPlatform<Spec>
fn test(&self) -> &PerPlatform<Spec>
fn build_mut(&mut self) -> &mut PerPlatform<Spec>
fn test_mut(&mut self) -> &mut PerPlatform<Spec>
fn format(&self) -> &Option<Format>
fn source(&self) -> &PerPlatform<Remote>
fn source_mut(&mut self) -> &mut PerPlatform<Remote>
fn deploy(&self) -> &PerPlatform<Spec>
fn deploy_mut(&mut self) -> &mut PerPlatform<Spec>
Source§fn to_lua_remote_rockspec_string(&self) -> Result<String, Error>
fn to_lua_remote_rockspec_string(&self) -> Result<String, Error>
Converts the rockspec to a string that can be uploaded to a luarocks server.
Source§fn binaries(&self) -> RockBinaries
fn binaries(&self) -> RockBinaries
Shorthand to extract the binaries that are part of the rockspec.
Auto Trait Implementations§
impl Forget for Remote
impl Freeze for Remote
impl Move for Remote
impl RefUnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl UnsafeUnpin for Remote
impl UnwindSafe for Remote
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 moreSource§impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
Source§fn validate_lua_version(&self, version: &Version) -> Result<(), Error>
fn validate_lua_version(&self, version: &Version) -> Result<(), Error>
Ensures that the rockspec is compatible with the specified lua version.
Returns an error if the rockspec is not compatible.
Source§fn validate_lua_version_from_config(&self, config: &Config) -> Result<(), Error>
fn validate_lua_version_from_config(&self, config: &Config) -> Result<(), Error>
Ensures that the rockspec is compatible with the lua version established in the config.
Returns an error if the rockspec is not compatible.
Source§fn lua_version_matches(&self, config: &Config) -> Result<Version, Error>
fn lua_version_matches(&self, config: &Config) -> Result<Version, Error>
Ensures that the rockspec is compatible with the lua version established in the config,
and returns the lua version from the config if it is compatible.
Source§fn supports_lua_version(&self, lua_version: &Version) -> bool
fn supports_lua_version(&self, lua_version: &Version) -> bool
Checks if the rockspec supports the given lua version.
Source§fn lua_version(&self) -> Option<Version>
fn lua_version(&self) -> Option<Version>
Returns the lua version required by the rockspec.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.