pub struct ObjectArtifact {
config: Config,
executor: Executor,
endpoints: Endpoints,
databases_checksums: CheapVec<EndpointGeneratorChecksum, 0>,
}Expand description
The project’s build artifact.
Fields§
§config: ConfigContains general settings shared with the frontend/compiler.
executor: ExecutorSpecific executor (server) settings.
endpoints: EndpointsDefines all the API endpoints.
databases_checksums: CheapVec<EndpointGeneratorChecksum, 0>Contains all the databases’ checksum. TODO: in the future there will be a method to checksum all the database’s schema regardless of whether they have been ‘discovered’.
Implementations§
Source§impl ObjectArtifact
impl ObjectArtifact
pub async fn check_checksums_in_object(&self, db_conns: DbConns) -> Result<()>
Source§impl ObjectArtifact
impl ObjectArtifact
pub const fn new( config: Config, executor: Executor, endpoints: Endpoints, databases_checksums: CheapVec<EndpointGeneratorChecksum, 0>, ) -> ObjectArtifact
Source§impl ObjectArtifact
impl ObjectArtifact
Sourcepub fn databases_checksums(&self) -> &CheapVec<EndpointGeneratorChecksum, 0>
pub fn databases_checksums(&self) -> &CheapVec<EndpointGeneratorChecksum, 0>
Contains all the databases’ checksum. TODO: in the future there will be a method to checksum all the database’s schema regardless of whether they have been ‘discovered’.
Source§impl ObjectArtifact
impl ObjectArtifact
Sourcepub fn config_mut(&mut self) -> &mut Config
pub fn config_mut(&mut self) -> &mut Config
Contains general settings shared with the frontend/compiler.
Sourcepub fn executor_mut(&mut self) -> &mut Executor
pub fn executor_mut(&mut self) -> &mut Executor
Specific executor (server) settings.
Sourcepub fn endpoints_mut(&mut self) -> &mut Endpoints
pub fn endpoints_mut(&mut self) -> &mut Endpoints
Defines all the API endpoints.
Sourcepub fn databases_checksums_mut(
&mut self,
) -> &mut CheapVec<EndpointGeneratorChecksum, 0>
pub fn databases_checksums_mut( &mut self, ) -> &mut CheapVec<EndpointGeneratorChecksum, 0>
Contains all the databases’ checksum. TODO: in the future there will be a method to checksum all the database’s schema regardless of whether they have been ‘discovered’.
Source§impl ObjectArtifact
impl ObjectArtifact
Sourcepub fn encode_binary(&self) -> Result<Bytes>
pub fn encode_binary(&self) -> Result<Bytes>
Serializes the binary and appends the magic bytes to the beginning of the buffer.
NOTE: the BINARY_MODE flag is set as a workaround of the issue https://github.com/serde-rs/serde/issues/1732,
so now we can safely serialize all repository’s structures and enums regardless whether the serializer being
self-descriptive or not.
Sourcepub fn decode_binary(buffer: &Bytes) -> Result<Self>
pub fn decode_binary(buffer: &Bytes) -> Result<Self>
Removes the magic bytes from the beginning of the file and deserializes the binary.
Trait Implementations§
Source§impl Clone for ObjectArtifact
impl Clone for ObjectArtifact
Source§fn clone(&self) -> ObjectArtifact
fn clone(&self) -> ObjectArtifact
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectArtifact
impl Debug for ObjectArtifact
Source§impl Default for ObjectArtifact
Default implementation for testing and validation.
impl Default for ObjectArtifact
Default implementation for testing and validation.
Source§impl<'de> Deserialize<'de> for ObjectArtifact
impl<'de> Deserialize<'de> for ObjectArtifact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ObjectArtifact
impl PartialEq for ObjectArtifact
Source§fn eq(&self, other: &ObjectArtifact) -> bool
fn eq(&self, other: &ObjectArtifact) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectArtifact
impl Serialize for ObjectArtifact
impl StructuralPartialEq for ObjectArtifact
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectArtifact
impl !UnwindSafe for ObjectArtifact
impl Freeze for ObjectArtifact
impl Send for ObjectArtifact
impl Sync for ObjectArtifact
impl Unpin for ObjectArtifact
impl UnsafeUnpin for ObjectArtifact
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,
§impl<T> Decode for T
impl<T> Decode for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Encode for T
impl<T> Encode for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more