pub struct CreateAccountRequest {
pub name: Option<String>,
pub pool: Option<String>,
pub fragments: Vec<Fragment>,
pub kind: String,
pub key: Option<String>,
pub oidc: Option<OidcIdentity>,
pub parked_key: Option<String>,
pub parent: Option<String>,
}Expand description
Body of bot.did.createAccount.
Fields§
§name: Option<String>The hostname of the new did:web: one label under a zone this
server serves, taken exactly or refused. Exclusive with pool and
fragments.
pool: Option<String>The pool the server makes the name in. Absent, with no name
either, the first pool policy permits makes it.
fragments: Vec<Fragment>Text for slots of the pool’s naming scheme, such as a prefix.
Requires pool.
kind: StringWhat the account is: service, host, pipeline or agent.
key: Option<String>A multibase public key the new account holds itself, published as
its #key-1. Exclusive with parkedKey.
oidc: Option<OidcIdentity>The OpenID Connect identity the new account is, published as its
#oidc.
parked_key: Option<String>The fingerprint bot.did.parkKey answered with, naming the parked
key to publish. Exclusive with key.
parent: Option<String>The DID of the hosted account creating this one: the account an ID token is checked against, and the account a session or a key proof must be.
Trait Implementations§
Source§impl Clone for CreateAccountRequest
impl Clone for CreateAccountRequest
Source§fn clone(&self) -> CreateAccountRequest
fn clone(&self) -> CreateAccountRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateAccountRequest
impl Debug for CreateAccountRequest
Source§impl<'de> Deserialize<'de> for CreateAccountRequest
impl<'de> Deserialize<'de> for CreateAccountRequest
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>,
Source§impl PartialEq for CreateAccountRequest
impl PartialEq for CreateAccountRequest
Source§fn eq(&self, other: &CreateAccountRequest) -> bool
fn eq(&self, other: &CreateAccountRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateAccountRequest
impl Serialize for CreateAccountRequest
impl Eq for CreateAccountRequest
impl StructuralPartialEq for CreateAccountRequest
Auto Trait Implementations§
impl Freeze for CreateAccountRequest
impl RefUnwindSafe for CreateAccountRequest
impl Send for CreateAccountRequest
impl Sync for CreateAccountRequest
impl Unpin for CreateAccountRequest
impl UnsafeUnpin for CreateAccountRequest
impl UnwindSafe for CreateAccountRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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<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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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