pub struct SignedDataBuilder<S: State = Empty> { /* private fields */ }Available on crate feature
v2_3_0 only.Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SignedDataBuilder<S>
impl<S: State> SignedDataBuilder<S>
Sourcepub fn build(self) -> SignedDatawhere
S: IsComplete,
pub fn build(self) -> SignedDatawhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn encoding_method(
self,
value: impl Into<CiString<36>>,
) -> SignedDataBuilder<SetEncodingMethod<S>>where
S::EncodingMethod: IsUnset,
pub fn encoding_method(
self,
value: impl Into<CiString<36>>,
) -> SignedDataBuilder<SetEncodingMethod<S>>where
S::EncodingMethod: IsUnset,
Required.
The name of the encoding used, as given by a company or group of companies.
Known implementations include OCMF, Alfen Eichrecht, EDL40 E-Mobility Extension and
EDL40 Mennekes.
Sourcepub fn encoding_method_version(
self,
value: impl Into<i32>,
) -> SignedDataBuilder<SetEncodingMethodVersion<S>>where
S::EncodingMethodVersion: IsUnset,
pub fn encoding_method_version(
self,
value: impl Into<i32>,
) -> SignedDataBuilder<SetEncodingMethodVersion<S>>where
S::EncodingMethodVersion: IsUnset,
Sourcepub fn maybe_encoding_method_version(
self,
value: Option<impl Into<i32>>,
) -> SignedDataBuilder<SetEncodingMethodVersion<S>>where
S::EncodingMethodVersion: IsUnset,
pub fn maybe_encoding_method_version(
self,
value: Option<impl Into<i32>>,
) -> SignedDataBuilder<SetEncodingMethodVersion<S>>where
S::EncodingMethodVersion: IsUnset,
Sourcepub fn public_key(
self,
value: impl Into<OcpiString<512>>,
) -> SignedDataBuilder<SetPublicKey<S>>where
S::PublicKey: IsUnset,
pub fn public_key(
self,
value: impl Into<OcpiString<512>>,
) -> SignedDataBuilder<SetPublicKey<S>>where
S::PublicKey: IsUnset,
Sourcepub fn maybe_public_key(
self,
value: Option<impl Into<OcpiString<512>>>,
) -> SignedDataBuilder<SetPublicKey<S>>where
S::PublicKey: IsUnset,
pub fn maybe_public_key(
self,
value: Option<impl Into<OcpiString<512>>>,
) -> SignedDataBuilder<SetPublicKey<S>>where
S::PublicKey: IsUnset,
Sourcepub fn signed_values(
self,
value: impl Into<Vec<SignedValue>>,
) -> SignedDataBuilder<SetSignedValues<S>>where
S::SignedValues: IsUnset,
pub fn signed_values(
self,
value: impl Into<Vec<SignedValue>>,
) -> SignedDataBuilder<SetSignedValues<S>>where
S::SignedValues: IsUnset,
Required.
One or more signed values. Cardinality +.
Sourcepub fn url(self, value: impl Into<Url>) -> SignedDataBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: impl Into<Url>) -> SignedDataBuilder<SetUrl<S>>where
S::Url: IsUnset,
Sourcepub fn maybe_url(
self,
value: Option<impl Into<Url>>,
) -> SignedDataBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn maybe_url(
self,
value: Option<impl Into<Url>>,
) -> SignedDataBuilder<SetUrl<S>>where
S::Url: IsUnset,
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> SignedDataBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> SignedDataBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> SignedDataBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> SignedDataBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SignedDataBuilder<S>
impl<S> RefUnwindSafe for SignedDataBuilder<S>
impl<S> Send for SignedDataBuilder<S>
impl<S> Sync for SignedDataBuilder<S>
impl<S> Unpin for SignedDataBuilder<S>
impl<S> UnsafeUnpin for SignedDataBuilder<S>
impl<S> UnwindSafe for SignedDataBuilder<S>
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