pub struct AssertUser {
pub user: String,
pub display_name: String,
pub client_endpoint: String,
pub item: String,
pub scope: TokenScope,
pub preferences: Option<TrackPreferences>,
pub download: Option<String>,
}Expand description
SB vouches for its local user, who wants item of SA’s on the
device client_endpoint: Token, or AssertionRefused.
Fields§
§user: StringThe user’s stable id on SB: a UUID, never a portable user’s id.
display_name: StringAlways empty (F8-08): a server never sends its users’ names to
another, which knows them by user alone. Kept for the wire, to
go in the federation protocol’s next version; what a server reads
of it is cut to crate::MAX_HELLO_TEXT characters.
client_endpoint: StringThe device’s endpoint id, hex: the only one the token works from.
item: StringThe item, by SA’s own id (what SB’s fed: id carries).
scope: TokenScopeWhat the token is for; a play when left out.
preferences: Option<TrackPreferences>The user’s track preferences on SB (P8-04): what SA chooses the audio and subtitles by when the play sends no selection, as SB would. Left out, SA’s defaults.
download: Option<String>A download token’s one download, by SA’s id (P8-07): what the device’s own token reads. Left out, the token’s session prepares the item’s download itself (SB’s own, which keeps the record).
Implementations§
Source§impl AssertUser
impl AssertUser
Sourcepub fn within_bounds(self) -> Self
pub fn within_bounds(self) -> Self
This assertion with its name cut to crate::MAX_HELLO_TEXT
characters: what a server reads of it.