pub struct EngineOptinOnV1 {
pub schema: String,
pub active: bool,
pub prev_optin_id: Option<String>,
pub vaults: Option<Vec<String>>,
pub daily_budget: DailyBudgetV1,
pub presence_signature: Option<String>,
}Expand description
PUT /v1/me/optin: task pickup turned on from the computer, with the
person at it (rc4-16). presence_signature is the signature of the
app’s bound opt-in key only (never the presence key; the field keeps its
name on the wire) (base64url, no padding) over OPTIN_SIGNING_DOMAIN ‖
canonical JSON of the body without it, plus "instance_id" (the
instance UUID, lowercase with hyphens). Cloud refuses a prev_optin_id
that is not the opt-in’s current one (409 invalid_state reason
optin_changed), so a signature works at most once.
Fields§
§schema: String§active: boolAlways true.
prev_optin_id: Option<String>The optin_id GET /v1/me/optin showed when the person signed;
null only while there is none. Always sent.
vaults: Option<Vec<String>>Vaults (project ids); left out means none (it replaces the list).
daily_budget: DailyBudgetV1§presence_signature: Option<String>Implementations§
Source§impl EngineOptinOnV1
impl EngineOptinOnV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for EngineOptinOnV1
impl Clone for EngineOptinOnV1
Source§impl Debug for EngineOptinOnV1
impl Debug for EngineOptinOnV1
Source§impl<'de> Deserialize<'de> for EngineOptinOnV1
impl<'de> Deserialize<'de> for EngineOptinOnV1
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
impl Eq for EngineOptinOnV1
Source§impl PartialEq for EngineOptinOnV1
impl PartialEq for EngineOptinOnV1
Source§impl Serialize for EngineOptinOnV1
impl Serialize for EngineOptinOnV1
impl StructuralPartialEq for EngineOptinOnV1
Auto Trait Implementations§
impl Forget for EngineOptinOnV1
impl Freeze for EngineOptinOnV1
impl Move for EngineOptinOnV1
impl RefUnwindSafe for EngineOptinOnV1
impl Send for EngineOptinOnV1where
RawVecInner: Send,
impl Sync for EngineOptinOnV1where
RawVecInner: Sync,
impl Unpin for EngineOptinOnV1
impl UnsafeUnpin for EngineOptinOnV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for EngineOptinOnV1where
RawVecInner: UnwindSafe,
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