pub enum OwnerInput {
PublicKey(String),
UserId(String),
}Expand description
The owner of the resource. If you provide this, do not specify an owner_id as it will be generated automatically. When updating a wallet, you can set the owner to null to remove the owner.
JSON schema
{
"description": "The owner of the resource. If you provide this, do not
specify an owner_id as it will be generated automatically. When updating
a wallet, you can set the owner to null to remove the owner.",
"oneOf": [
{
"title": "Public key owner",
"description": "The P-256 public key of the owner of the resource,
in base64-encoded DER format. If you provide this, do not specify an
owner_id as it will be generated automatically.",
"type": "object",
"required": [
"public_key"
],
"properties": {
"public_key": {
"type": "string"
}
}
},
{
"title": "User owner",
"description": "The user ID of the owner of the resource. The user
must already exist, and this value must start with \"did:privy:\". If
you provide this, do not specify an owner_id as it will be generated
automatically.",
"type": "object",
"required": [
"user_id"
],
"properties": {
"user_id": {
"type": "string"
}
}
}
]
}Variants§
PublicKey(String)
The P-256 public key of the owner of the resource, in base64-encoded DER format. If you provide this, do not specify an owner_id as it will be generated automatically.
UserId(String)
The user ID of the owner of the resource. The user must already exist, and this value must start with “did:privy:”. If you provide this, do not specify an owner_id as it will be generated automatically.
Trait Implementations§
Source§impl Clone for OwnerInput
impl Clone for OwnerInput
Source§fn clone(&self) -> OwnerInput
fn clone(&self) -> OwnerInput
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 Debug for OwnerInput
impl Debug for OwnerInput
Source§impl<'de> Deserialize<'de> for OwnerInput
impl<'de> Deserialize<'de> for OwnerInput
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
Source§impl From<&OwnerInput> for OwnerInput
impl From<&OwnerInput> for OwnerInput
Source§fn from(value: &OwnerInput) -> Self
fn from(value: &OwnerInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnerInput
impl RefUnwindSafe for OwnerInput
impl Send for OwnerInput
impl Sync for OwnerInput
impl Unpin for OwnerInput
impl UnwindSafe for OwnerInput
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