Skip to main content

from_access_code

Function from_access_code 

Source
pub fn from_access_code(
    authorization: CredentialsOrApiKey,
    access_code: &str,
    meta: FileMeta,
) -> File
Expand description

Build a streaming File addressed by a per-file access code. Bytes are pulled on demand via download() (the Access-Code path). Used to hydrate chat message FILE parts returned by the server (each carries its own code), so members stream file bytes uniformly without a host-drive path.