pub struct RolloutsSource {
pub artifact_url_template: String,
pub signature_url_template: String,
pub token_file: Option<PathBuf>,
pub timeout: Duration,
}Fields§
§artifact_url_template: StringMust contain {rolloutId}.
signature_url_template: StringMust contain {rolloutId}.
token_file: Option<PathBuf>None -> unauthenticated GET.
timeout: DurationImplementations§
Source§impl RolloutsSource
impl RolloutsSource
Sourcepub fn new(
artifact_url_template: String,
signature_url_template: String,
token_file: Option<PathBuf>,
) -> Result<Self>
pub fn new( artifact_url_template: String, signature_url_template: String, token_file: Option<PathBuf>, ) -> Result<Self>
Bails if either template lacks the placeholder.
Sourcepub async fn fetch_pair(&self, rollout_id: &str) -> Result<(Vec<u8>, Vec<u8>)>
pub async fn fetch_pair(&self, rollout_id: &str) -> Result<(Vec<u8>, Vec<u8>)>
Substitutes rollout_id into the URL templates and returns the
(manifest, signature) byte pair. Performs no identifier validation;
the caller is contractually required to invoke
verify_rollout_manifest (authenticity) and then assert that the
parsed manifest’s RolloutId::new(&m.channel, &m.channel_ref) equals
the rollout_id passed here (identity-substitution defense).
Trait Implementations§
Source§impl Clone for RolloutsSource
impl Clone for RolloutsSource
Source§fn clone(&self) -> RolloutsSource
fn clone(&self) -> RolloutsSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RolloutsSource
impl RefUnwindSafe for RolloutsSource
impl Send for RolloutsSource
impl Sync for RolloutsSource
impl Unpin for RolloutsSource
impl UnwindSafe for RolloutsSource
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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