pub struct SecretRequest {
pub id: u64,
pub name: String,
pub description: String,
pub sites: Vec<String>,
pub hosts: Vec<String>,
pub created_at: DateTime<Utc>,
}Expand description
A secret a repository’s agent asked its owner for, waiting until the owner switches on a
secret by that name (Repository::set_secret) or declines it (Repository::decline).
Fields§
§id: u64§name: String§description: StringWhat the agent said it’s for.
sites: Vec<String>Where the agent proposed it be typed in, as hosts.
hosts: Vec<String>Where the agent proposed programs send it, as hosts.
created_at: DateTime<Utc>Implementations§
Source§impl SecretRequest
impl SecretRequest
pub fn from_json(json: &Value) -> Option<SecretRequest>
Trait Implementations§
Source§impl Clone for SecretRequest
impl Clone for SecretRequest
Source§impl Debug for SecretRequest
impl Debug for SecretRequest
Source§impl<'de> Deserialize<'de> for SecretRequest
impl<'de> Deserialize<'de> for SecretRequest
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 PartialEq for SecretRequest
impl PartialEq for SecretRequest
Source§impl Serialize for SecretRequest
impl Serialize for SecretRequest
impl StructuralPartialEq for SecretRequest
Auto Trait Implementations§
impl Forget for SecretRequest
impl Freeze for SecretRequest
impl Move for SecretRequest
impl RefUnwindSafe for SecretRequest
impl Send for SecretRequest
impl Sync for SecretRequest
impl Unpin for SecretRequest
impl UnsafeUnpin for SecretRequest
impl UnwindSafe for SecretRequest
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