pub struct OCABuilder {
pub oca: OCA,
pub meta_translations: HashMap<Language, OCATranslation>,
pub form_layout: Option<String>,
pub form_layout_reference: BTreeMap<String, String>,
pub credential_layout: Option<String>,
pub credential_layout_reference: BTreeMap<String, String>,
/* private fields */
}
Fields
oca: OCA
meta_translations: HashMap<Language, OCATranslation>
form_layout: Option<String>
form_layout_reference: BTreeMap<String, String>
credential_layout: Option<String>
credential_layout_reference: BTreeMap<String, String>
Implementations
sourceimpl 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_credential_layout(self, layout: String) -> OCABuilder
pub fn add_name(self, names: HashMap<Language, String>) -> OCABuilder
pub fn add_description(
self,
descriptions: 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
sourceimpl<'de> Deserialize<'de> for OCABuilder
impl<'de> Deserialize<'de> for OCABuilder
sourcefn 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
sourceimpl Serialize for OCABuilder
impl Serialize for OCABuilder
Auto Trait Implementations
impl !RefUnwindSafe for OCABuilder
impl !Send for OCABuilder
impl !Sync for OCABuilder
impl Unpin for OCABuilder
impl !UnwindSafe for OCABuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more