pub enum UpdateOperation<D = CredentialData>where
D: Serialize,{
Add(D),
Remove(Vec<String>),
}
Variants§
Trait Implementations§
Source§impl<D> Clone for UpdateOperation<D>
impl<D> Clone for UpdateOperation<D>
Source§fn clone(&self) -> UpdateOperation<D>
fn clone(&self) -> UpdateOperation<D>
Returns a duplicate 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<D> Debug for UpdateOperation<D>
impl<D> Debug for UpdateOperation<D>
Source§impl<'de, D> Deserialize<'de> for UpdateOperation<D>where
D: Serialize + Deserialize<'de>,
impl<'de, D> Deserialize<'de> for UpdateOperation<D>where
D: Serialize + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateOperation<D>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateOperation<D>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<D> JsonSchema for UpdateOperation<D>where
D: Serialize + JsonSchema,
impl<D> JsonSchema for UpdateOperation<D>where
D: Serialize + JsonSchema,
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl<D> PartialEq for UpdateOperation<D>
impl<D> PartialEq for UpdateOperation<D>
Source§impl<D> Serialize for UpdateOperation<D>where
D: Serialize,
impl<D> Serialize for UpdateOperation<D>where
D: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<D> StructuralPartialEq for UpdateOperation<D>where
D: Serialize,
Auto Trait Implementations§
impl<D> Freeze for UpdateOperation<D>where
D: Freeze,
impl<D> RefUnwindSafe for UpdateOperation<D>where
D: RefUnwindSafe,
impl<D> Send for UpdateOperation<D>where
D: Send,
impl<D> Sync for UpdateOperation<D>where
D: Sync,
impl<D> Unpin for UpdateOperation<D>where
D: Unpin,
impl<D> UnwindSafe for UpdateOperation<D>where
D: UnwindSafe,
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