pub struct OCABuilder {
pub oca: OCA,
pub meta_translations: HashMap<Language, OCATranslation>,
pub form_layout: Option<String>,
pub default_form_layout: bool,
pub form_layout_reference: BTreeMap<String, String>,
pub credential_layout: Option<String>,
pub default_credential_layout: bool,
pub credential_layout_reference: BTreeMap<String, String>,
/* private fields */
}
Fields§
§oca: OCA
§meta_translations: HashMap<Language, OCATranslation>
§form_layout: Option<String>
§default_form_layout: bool
§form_layout_reference: BTreeMap<String, String>
§credential_layout: Option<String>
§default_credential_layout: bool
§credential_layout_reference: BTreeMap<String, String>
Implementations§
Source§impl OCABuilder
impl OCABuilder
pub fn new(default_encoding: Encoding) -> OCABuilder
pub fn add_classification(self, classification: String) -> OCABuilder
pub fn add_form_layout(self, layout: String) -> OCABuilder
pub fn add_default_form_layout(self) -> OCABuilder
pub fn add_credential_layout(self, layout: String) -> OCABuilder
pub fn add_default_credential_layout(self) -> OCABuilder
pub fn add_name(self, names: HashMap<Language, String>) -> OCABuilder
pub fn add_description( self, descriptions: HashMap<Language, String>, ) -> OCABuilder
pub fn add_meta( self, name: String, values: HashMap<Language, String>, ) -> OCABuilder
pub fn add_attribute(self, attr: Attribute) -> OCABuilder
pub fn finalize(self) -> OCA
pub fn build_default_form_layout(&self) -> String
pub fn add_form_layout_reference(&mut self, name: String, layout: String)
pub fn build_default_credential_layout(&self) -> String
pub fn add_credential_layout_reference(&mut self, name: String, layout: String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OCABuilder
impl<'de> Deserialize<'de> for OCABuilder
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
Auto Trait Implementations§
impl Freeze for OCABuilder
impl !RefUnwindSafe for OCABuilder
impl !Send for OCABuilder
impl !Sync for OCABuilder
impl Unpin for OCABuilder
impl !UnwindSafe for OCABuilder
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