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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DatabaseCertificateConfiguration
Auto Trait Implementations§
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