Struct SetProfileRequest
pub struct SetProfileRequest {
pub version: Vec<u8>,
pub data: Vec<u8>,
pub expected_current_data_hash: Vec<u8>,
pub expected_current_version: Vec<u8>,
pub payment_address: Vec<u8>,
pub badge_ids: Vec<String>,
pub commitment: Vec<u8>,
pub v1_request: Option<SetProfileV1Request>,
}Fields§
§version: Vec<u8>The profile version. Required.
data: Vec<u8>The ciphertext of a serialized Profile protobuf. Required. 1486 max length = 1202 plaintext serialization + 256-byte external padding PKCS#7 + 28 bytes encryption overhead
expected_current_data_hash: Vec<u8>The SHA-256 hash of the Profile ciphertext being replaced. This is used an optimistic lock against concurrent changes.
Optional, if this is the initial request to create a version.
expected_current_version: Vec<u8>The current profile version being updated. This is used as an optimistic lock against concurrent changes.
Optional, if there is no current profile version for the account.
payment_address: Vec<u8>The ciphertext of the MobileCoin wallet ID on the profile.
badge_ids: Vec<String>A list of badge IDs associated with the profile.
commitment: Vec<u8>The profile key commitment. Used to issue a profile key credential response.
Required during the v1 -> v2 migration period. Afterwards will be optional, if this is an update to an existing version.
v1_request: Option<SetProfileV1Request>An embedded v1 request. Required during the v1 -> v2 migration period.
Because this is a temporary field during the migration, it has the highest field number without serialization overhead. This is purely aesthetic.
Trait Implementations§
§impl Clone for SetProfileRequest
impl Clone for SetProfileRequest
§fn clone(&self) -> SetProfileRequest
fn clone(&self) -> SetProfileRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for SetProfileRequest
impl Debug for SetProfileRequest
§impl Default for SetProfileRequest
impl Default for SetProfileRequest
§fn default() -> SetProfileRequest
fn default() -> SetProfileRequest
impl Eq for SetProfileRequest
§impl Hash for SetProfileRequest
impl Hash for SetProfileRequest
§impl Message for SetProfileRequest
impl Message for SetProfileRequest
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.§impl PartialEq for SetProfileRequest
impl PartialEq for SetProfileRequest
impl StructuralPartialEq for SetProfileRequest
Auto Trait Implementations§
impl Freeze for SetProfileRequest
impl RefUnwindSafe for SetProfileRequest
impl Send for SetProfileRequest
impl Sync for SetProfileRequest
impl Unpin for SetProfileRequest
impl UnsafeUnpin for SetProfileRequest
impl UnwindSafe for SetProfileRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].