Enum medea_control_api_proto::grpc::api::member::Credentials
source · [−]Expand description
Credentials of the Member to authorize via Client API with.
Plain and hashed credentials are supported. If no credentials provided, then random plain string will be generated. If no authentication is required then empty plain string can be used.
Hashed variant only supports Argon2 hash at the moment. Member sid won’t contain token if hashed credentials are used, so token query parameter should be appended manually.
Variants
Hash(String)
Argon2 hash of credentials.
Plain(String)
Plain text credentials.
Implementations
pub fn merge<B>(
field: &mut Option<Credentials>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more