pub struct AgentSecret {
pub name: String,
pub value: Vec<u8>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub kind: i32,
pub deployments: Vec<String>,
}Fields§
§name: String§value: Vec<u8>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>§kind: i32§deployments: Vec<String>Implementations§
Source§impl AgentSecret
impl AgentSecret
Sourcepub fn kind(&self) -> AgentSecretKind
pub fn kind(&self) -> AgentSecretKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: AgentSecretKind)
pub fn set_kind(&mut self, value: AgentSecretKind)
Sets kind to the provided enum value.
Trait Implementations§
Source§impl Clone for AgentSecret
impl Clone for AgentSecret
Source§impl Debug for AgentSecret
impl Debug for AgentSecret
Source§impl Default for AgentSecret
impl Default for AgentSecret
§impl<'de> Deserialize<'de> for AgentSecret
impl<'de> Deserialize<'de> for AgentSecret
§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
impl Eq for AgentSecret
Source§impl Hash for AgentSecret
impl Hash for AgentSecret
Source§impl Message for AgentSecret
impl Message for AgentSecret
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AgentSecret
impl PartialEq for AgentSecret
§impl Serialize for AgentSecret
impl Serialize for AgentSecret
impl StructuralPartialEq for AgentSecret
Auto Trait Implementations§
impl Freeze for AgentSecret
impl RefUnwindSafe for AgentSecret
impl Send for AgentSecret
impl Sync for AgentSecret
impl Unpin for AgentSecret
impl UnsafeUnpin for AgentSecret
impl UnwindSafe for AgentSecret
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