pub struct DatabaseCertificateConfiguration {Show 22 fields
pub id: Uuid,
pub certificate_owner_name_y_pos: Option<String>,
pub certificate_owner_name_x_pos: Option<String>,
pub certificate_owner_name_font_size: Option<String>,
pub certificate_owner_name_text_color: Option<String>,
pub certificate_owner_name_text_anchor: Option<CertificateTextAnchor>,
pub certificate_validate_url_y_pos: Option<String>,
pub certificate_validate_url_x_pos: Option<String>,
pub certificate_validate_url_font_size: Option<String>,
pub certificate_validate_url_text_color: Option<String>,
pub certificate_validate_url_text_anchor: Option<CertificateTextAnchor>,
pub certificate_date_y_pos: Option<String>,
pub certificate_date_x_pos: Option<String>,
pub certificate_date_font_size: Option<String>,
pub certificate_date_text_color: Option<String>,
pub certificate_date_text_anchor: Option<CertificateTextAnchor>,
pub certificate_locale: Option<String>,
pub paper_size: Option<PaperSize>,
pub background_svg_path: String,
pub background_svg_file_upload_id: Uuid,
pub overlay_svg_path: Option<String>,
pub overlay_svg_file_upload_id: Option<Uuid>,
}
Fields§
§id: Uuid
§certificate_owner_name_y_pos: Option<String>
§certificate_owner_name_x_pos: Option<String>
§certificate_owner_name_font_size: Option<String>
§certificate_owner_name_text_color: Option<String>
§certificate_owner_name_text_anchor: Option<CertificateTextAnchor>
§certificate_validate_url_y_pos: Option<String>
§certificate_validate_url_x_pos: Option<String>
§certificate_validate_url_font_size: Option<String>
§certificate_validate_url_text_color: Option<String>
§certificate_validate_url_text_anchor: Option<CertificateTextAnchor>
§certificate_date_y_pos: Option<String>
§certificate_date_x_pos: Option<String>
§certificate_date_font_size: Option<String>
§certificate_date_text_color: Option<String>
§certificate_date_text_anchor: Option<CertificateTextAnchor>
§certificate_locale: Option<String>
§paper_size: Option<PaperSize>
§background_svg_path: String
§background_svg_file_upload_id: Uuid
§overlay_svg_path: Option<String>
§overlay_svg_file_upload_id: Option<Uuid>
Implementations§
Source§impl DatabaseCertificateConfiguration
impl DatabaseCertificateConfiguration
Sourcefn build(&self) -> DatabaseCertificateConfigurationInner<'_>
fn build(&self) -> DatabaseCertificateConfigurationInner<'_>
Uses the same default values as the CREATE TABLE
statement for certificate_configurations
.
A little inconvenient, if there’s a better way to turn a None into the default value for the row this can be refactored out.
Trait Implementations§
Source§impl Clone for DatabaseCertificateConfiguration
impl Clone for DatabaseCertificateConfiguration
Source§fn clone(&self) -> DatabaseCertificateConfiguration
fn clone(&self) -> DatabaseCertificateConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for DatabaseCertificateConfiguration
impl<'de> Deserialize<'de> for DatabaseCertificateConfiguration
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatabaseCertificateConfiguration
impl PartialEq for DatabaseCertificateConfiguration
Source§fn eq(&self, other: &DatabaseCertificateConfiguration) -> bool
fn eq(&self, other: &DatabaseCertificateConfiguration) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DatabaseCertificateConfiguration
Auto Trait Implementations§
impl Freeze for DatabaseCertificateConfiguration
impl RefUnwindSafe for DatabaseCertificateConfiguration
impl Send for DatabaseCertificateConfiguration
impl Sync for DatabaseCertificateConfiguration
impl Unpin for DatabaseCertificateConfiguration
impl UnwindSafe for DatabaseCertificateConfiguration
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> 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> 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