Struct clockwork_webhook_program::state::Webhook
source · pub struct Webhook {
pub authority: Pubkey,
pub body: Vec<u8>,
pub created_at: u64,
pub headers: HashMap<String, String>,
pub id: Vec<u8>,
pub method: HttpMethod,
pub relayer: Relayer,
pub url: String,
pub workers: Vec<Pubkey>,
}
Fields§
§body: Vec<u8>
§created_at: u64
§headers: HashMap<String, String>
§id: Vec<u8>
§method: HttpMethod
§relayer: Relayer
§url: String
§workers: Vec<Pubkey>
Implementations§
Trait Implementations§
source§impl AccountDeserialize for Webhook
impl AccountDeserialize for Webhook
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint
account into a token
Account
.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
source§impl AccountSerialize for Webhook
impl AccountSerialize for Webhook
source§impl BorshDeserialize for Webhookwhere
Pubkey: BorshDeserialize,
Vec<u8>: BorshDeserialize,
u64: BorshDeserialize,
HashMap<String, String>: BorshDeserialize,
HttpMethod: BorshDeserialize,
Relayer: BorshDeserialize,
String: BorshDeserialize,
Vec<Pubkey>: BorshDeserialize,
impl BorshDeserialize for Webhookwhere Pubkey: BorshDeserialize, Vec<u8>: BorshDeserialize, u64: BorshDeserialize, HashMap<String, String>: BorshDeserialize, HttpMethod: BorshDeserialize, Relayer: BorshDeserialize, String: BorshDeserialize, Vec<Pubkey>: BorshDeserialize,
source§impl BorshSerialize for Webhookwhere
Pubkey: BorshSerialize,
Vec<u8>: BorshSerialize,
u64: BorshSerialize,
HashMap<String, String>: BorshSerialize,
HttpMethod: BorshSerialize,
Relayer: BorshSerialize,
String: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
impl BorshSerialize for Webhookwhere Pubkey: BorshSerialize, Vec<u8>: BorshSerialize, u64: BorshSerialize, HashMap<String, String>: BorshSerialize, HttpMethod: BorshSerialize, Relayer: BorshSerialize, String: BorshSerialize, Vec<Pubkey>: BorshSerialize,
source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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 Discriminator for Webhook
impl Discriminator for Webhook
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
Blanket Implementations§
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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